简体   繁体   中英

Merging MDI menu

I have a main form with the following MenuStrip

File          Window
 New Child
 Exit

And a second MDI child with these items

File    Edit
  Save
  New

no matter how I set the properties MergeAction for both of this ToolStrip objects I cannot get such a structure after the child form is displayed for the main menu.

File Window Edit

where File would be merged nicely with the items form child window.

Any other ideas how to achieve this behavior?

Set parent: New Child merge index to 2
Set parent: Exit merge index to 3
Set child: File merge action to MatchOnly
Set child: Save merge action to Insert and merge index to 0
Set child: New merge action to Insert and merge index to 1

Leave all other to default settings. Also both MenuStrips must have their property AllowMerge set to true

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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