Separate MDI Child form MainMenus

A WinForms VB.Net question...

How do I keep a Child form's MainMenu items separate (and attached to the Child form) rather than appending them to the Parent Form's MainMenu?
LVL 1
Sigh_ManAsked:
Who is Participating?
 
RonaldBiemansConnect With a Mentor Commented:
No, I don't think that that is possible. It's there by design
0
 
Sigh_ManAuthor Commented:
(I realise that this will only be feasible with a non-maximised Child form)
0
 
RonaldBiemansCommented:
You realised correctly ;-),

But you might want to look at the mergetype and mergeorder properties.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformsmenuitemclassmergetypetopic.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformsmenuitemclassmergeordertopic.asp

These will allow you forinstance, to overrides the mdi parents menu with the child window if the child window is maximized

0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
Sigh_ManAuthor Commented:
Thanks.

But is it possible to have the Child Form containing its own Menu?  The Menu item that I want to keep on the Child Form is relevant to the content of the Child Form only, so I want to keep the menu visible on the Child form rather than it moving up to join the Parent Form menu.
0
 
RonaldBiemansCommented:
But you can always fake that by building the menu yourself.
0
 
Sigh_ManAuthor Commented:
Thanks mate.    :D
0
All Courses

From novice to tech pro — start learning today.