MDI child for and it's menu

J

Jim H

I would like to have some MenuItems that are specific to my child form
appear in the main menu.

In the MSDN documentation:
Menu merging is typically done to merge the menus of a Multiple Document
Interface (MDI) parent form with those of its active MDI child form. This is
performed automatically by the .NET Framework common language runtime. For
example, if an MDI parent form contains a set of menus for handling files
and your MDI child form also has file-related menu items, the menu sets will
automatically merge into a single file menu set when the child form is
displayed in the MDI parent form.
I have a MainMenu on my child form and it has a "Tools" MenuItem, So does
the parent. How do I get this to merge with the main application's menu? I
can't get it to show. The MenuItems do not show up on the parent or the
child. Do I need to make the parent's menu public and call merge? Or, make
the child's menu public and call merge from the parent? I thought that's
what I would need to do until I read the above. So how to I get this to
work?

I've tried having MenuItems that did not match the names in the Parent as
well. They don't show up either.



Thanks,

jim
 
J

Jim H

I got it. For what ever reason the Menu property was not being set
automatically on this child form like it was the others.
Setting the Menu property fixed everything.

jim
 

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

Top