Merge MenuStrip in MDI form
-
Hello I'm trying to merge a main menu strip and a childs menu strip but I can't get the expected result 1- I have a Main form mdiMain and a child fomr mdiChild 2- mdiMain contains mnuMain, mdiChild contains mnuChild 3- Both mnu have a File item : New; Open; and exit for main,, Save, Save As, Import for child 4- both mnu have allowmerge to true 5- I set the merge option of the Main file item to insert 6- I also set the merge option of the Child file item to insert 7 So I expect a result like New Open Exit Save Save as Import BUT I only get the Main File Menu New Open Exit Do someone knws how to do it Thanks very much for any help
-
Hello I'm trying to merge a main menu strip and a childs menu strip but I can't get the expected result 1- I have a Main form mdiMain and a child fomr mdiChild 2- mdiMain contains mnuMain, mdiChild contains mnuChild 3- Both mnu have a File item : New; Open; and exit for main,, Save, Save As, Import for child 4- both mnu have allowmerge to true 5- I set the merge option of the Main file item to insert 6- I also set the merge option of the Child file item to insert 7 So I expect a result like New Open Exit Save Save as Import BUT I only get the Main File Menu New Open Exit Do someone knws how to do it Thanks very much for any help
-
Does it help if you alter the
MergeOption
toAppend
? Or could it be that the constructor isn't creating the mnuChild-component?I are troll :)
modified on Sunday, April 5, 2009 12:07 PM
Thank you No, it does not change anything BUT I have the solution It is necesary to set the head item (File in this case) to MatchOnly Then set each items in the child menu to the needed value (Insert, append...) A little bit tedious is the need to set the Exit item in the Main menu at the end To do that it is necessary to sell all items in the child menu to Insert with the proper index