Hi,
I have some troubles with merging MenuStrips. My Application has an MDI Parent form and some MDI children forms.
The menu in the parent form looks like
File
New
Project
Open
Exit
if no MDI children form is open.
The menu for the children forms should look like
File
New
ObjectType #1
ObjectType #2
ObjectType #3
Save
Save as
Close
What I want is that the MDI parent menu looks like this, when a MDI child form is open:
File
New
Project
ObjectType #1
ObjectType #2
ObjectType #3
Save
Save as
Close
Exit
I read the thread http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=11000&SiteID=1 carefully and I am able to merge the menuitems on "the first level", but I am not able to merge the menuitems below the "New" menuitem.
At the moment my menu looks like:
File
New
Project
New
ObjectType #1
ObjectType #2
ObjectType #3
Save
Save as
Close
Exit
My menu settings for merging are:
MDI parent menu:
File (merge action = append)
New (merge action = append)
Project (merge action = append)
Open (merge action = append)
Exit (merge action = append)
MDI child menu:
File (merge action = match only)
New (merge action = insert)
ObjectType #1 (merge action = append)
ObjectType #2 (merge action = append)
ObjectType #3 (merge action = append)
Save (merge action = insert)
Save as (merge action = insert)
Close (merge action = insert)
So, does anybody know what I am doing wrong
Thanks!

Merging MenuStrips
pgiuseppe
The problem seems to be your "New" in the MDI child. You want to set this to MergeAction.MatchOnly so that it will match to the MDI Parent's "New" menu item.
You should use MergeAction.MatchOnly to replicate the MDI Parent's menu heirarchy and Insert, Append, Remove and Replace to add and remove items to the MDI Parent's menu.
Jessica