开发者

System.Windows.Forms.MainMenu has a problem with merging elements

开发者 https://www.devze.com 2023-03-29 06:08 出处:网络
I have a menu in C# which is not a menu strip but instead a System.Windows.Forms.MainMenu, a professional menu in C#, but it has a problem.

I have a menu in C# which is not a menu strip but instead a System.Windows.Forms.MainMenu, a professional menu in C#, but it has a problem.

This MainMenu is in parent window, and when we open child windows in parent by clicking on开发者_开发百科 menu, an icon on the left side appears, and the number of icons appear. If number of menus are clicked and their child forms opened, that completely disturbs the menu. Secondly when child forms open, cross and minimize icons also get together.

You can find the image attached to understand clearly what I mean. The image attached is when I clicked on 4 menus and 4 child forms opened in a parent form. Remember I open the form without deleting the previous instance, because I don't want the child which is opened should be cleared when re-opened.

System.Windows.Forms.MainMenu has a problem with merging elements


This is caused by a bug in Winforms. Do not create the MDI child window in the constructor, do it in a Load event handler you write.

0

精彩评论

暂无评论...
验证码 换一张
取 消