Question Menu Merging MDI Winforms

sputnik75043

Member
Joined
Aug 28, 2010
Messages
13
Programming Experience
Beginner
In my MDI form, I have a file menu, but it only has New/Preferences/Exit.
I have 2 separate child forms that can be opened and saved, so their save is in a different way.

I pretty much have a small bit of understanding on how to insert (merge) an entire menu (section? for lack of better word -File/View/Edit, etc.) from the child to the MDI Parent, but what I'd like to do is to have a File/Save menu on each child and ONLY merge the SAVE menu from each into the MDI parent's File menu.

Is this possible?
If so, how (nothting I've done so far makes it work)?
 
Last edited:

JohnH

VB.NET Forum Moderator
Staff member
Joined
Dec 17, 2005
Messages
15,410
Location
Norway
Programming Experience
10+
In child menu you set MergeAction for each menu item. File item and its subitems to keep in child you set to MatchOnly, the Save item you set to Replace.
 

sputnik75043

Member
Joined
Aug 28, 2010
Messages
13
Programming Experience
Beginner
That works, thanks - - one more thing, though.
I set the File menu item to match only, but it shows on both the MDI Parent and the MDI child.

Is there a way to make it NOT show on the child form (other than programmatically)?
 
Last edited:

JohnH

VB.NET Forum Moderator
Staff member
Joined
Dec 17, 2005
Messages
15,410
Location
Norway
Programming Experience
10+
In the case the child File item is the only item of that branch that remains after merge you can just set Visible to False in designer for this item, it need never be visible.
 
Top Bottom