Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MDI menu merge prevention

Status
Not open for further replies.

Thrakazog

Programmer
Dec 10, 2001
48
US
I have an MDI app with several child forms. The MDI form has a MainMenu control on it. My child forms also have MainMenu controls. By Windows defaults when a child form is opened in the MDI, the childs MainMenu is added to the MDI parents MainMenu.

How can I prevent this? I want the MDI forms MainMenu left alone. I need the child forms MainMenu controls to appear on them and not be merged with the parent MDI.
 
Additionally, if try to use chrissie1's trick of loading the child form as a "sub-form" ie add it to the controls collection of the main form (and set its TopLevel property to false) you will lose the child form's menu completely - so as far as I can see there is no solution other than to have the child form as a seperate form.
 
Or try another menu-control like dotnetbar

Christiaan Baes
Belgium

I just like this --> [Wiggle] [Wiggle]
 
Thanks for the input everybody. But I needed to move on the issue so I wrote my own menu control. So far it works great and gives me lots of enhancement opportunities.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top