开发者

C# winform Menustrip merging problem

开发者 https://www.devze.com 2023-01-07 17:11 出处:网络
class MDIFormMenu: System.Windows.Forms.MenuStrip { } class ChildFormMenu:开发者_运维百科 System.Windows.Forms.MenuStrip
class MDIFormMenu: System.Windows.Forms.MenuStrip
{

}

class ChildFormMenu:开发者_运维百科 System.Windows.Forms.MenuStrip
{

}

I used MDIFormMenu on MDIForm set MainMenuStrip property and ChildFormMenu added on ChildForm. It is failed to merge.

If I used same class menu on both form it works.

Please help me, what am I doing wrong?


The ChildFormMenu must be derived from MDIFormMenu. This behavior is perhaps by design.

class ChildFormMenu: MDIFormMenu
{

}
0

精彩评论

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