简体   繁体   English

Windows表单中的菜单快捷方式和MDI

[英]Menu shortcuts and MDI in Windows forms

After I modified my application to the MDI application (main form became an MDI container), all of the shortcuts, which were specified int the main menu of the original form, are no longer works. 在将我的应用程序修改为MDI应用程序(主窗体成为MDI容器)之后,在原始窗体的主菜单中指定的所有快捷方式不再起作用。 What can I do in order to "turn them on" again? 为了再次“打开”它们,我该怎么办?

The only thing that comes to mind is that you need to set the mdiparent property of any child form before you show it. 唯一想到的是,您需要在显示任何子表单之前设置其mdiparent属性。 You could have missed this when you switched the main form over. 当您切换主表单时,您可能会错过这一点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM