Does Mdi automatically merge menus or do I need to code that

  • Thread starter Thread starter **Developer**
  • Start date Start date
D

**Developer**

I open a form containing a MainMenu thusly:

Dim FormTextEditor As New FormChildArtEditorTool

FormTextEditor.MdiParent = Me

FormTextEditor.Show()



The form's main menu does not appear to have merged with the parents menu.

I know how to merge menus so I can do that if necessary.

My question is: is it necessary or should the merging be happening
automatically.





Thanks

PS It wouldn't surprise me to learn that it should be happening
automatically and there is something wrong with the program since the code
is quite messy.
 
**Developer**,
Merging should happen automatically based on MenuItem.MergeType &
MenuItem.MergeOrder. For a detailed example see:

http://samples.gotdotnet.com/quickstart/winforms/doc/WinFormsMDI.aspx


In VS 2005, you can also merge ToolStrips & MenuStrips in addition to Menus.

--
Hope this helps
Jay [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net


|I open a form containing a MainMenu thusly:
|
| Dim FormTextEditor As New FormChildArtEditorTool
|
| FormTextEditor.MdiParent = Me
|
| FormTextEditor.Show()
|
|
|
| The form's main menu does not appear to have merged with the parents menu.
|
| I know how to merge menus so I can do that if necessary.
|
| My question is: is it necessary or should the merging be happening
| automatically.
|
|
|
|
|
| Thanks
|
| PS It wouldn't surprise me to learn that it should be happening
| automatically and there is something wrong with the program since the code
| is quite messy.
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top