Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sql-server-2005/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C#winform Menustrip合并问题_C#_Winforms_Menu - Fatal编程技术网

C#winform Menustrip合并问题

C#winform Menustrip合并问题,c#,winforms,menu,C#,Winforms,Menu,我在MDIForm set MainMenuStrip属性上使用了MDIFormMenu,并在ChildForm上添加了ChildFormMenu。合并失败 如果我在两个窗体上使用相同的类菜单,它就会工作 请帮帮我,我做错了什么?ChildFormMenu必须从MDIFormMenu派生。这种行为可能是故意的 class MDIFormMenu: System.Windows.Forms.MenuStrip { } class ChildFormMenu: System.Windows.Fo

我在MDIForm set MainMenuStrip属性上使用了MDIFormMenu,并在ChildForm上添加了ChildFormMenu。合并失败

如果我在两个窗体上使用相同的类菜单,它就会工作


请帮帮我,我做错了什么?

ChildFormMenu必须从MDIFormMenu派生。这种行为可能是故意的

class MDIFormMenu: System.Windows.Forms.MenuStrip
{

}

class ChildFormMenu: System.Windows.Forms.MenuStrip
{

}
你说的“合并”是什么意思?
class ChildFormMenu: MDIFormMenu
{

}