By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,119 Members | 2,086 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,119 IT Pros & Developers. It's quick & easy.

MDI child for and it's menu

P: n/a
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
Nov 16 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Oh, and in the child the MenuItems have there Merge Property set to
MergeItems.
"Jim H" <no****@jimsaccount.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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

Nov 16 '05 #2

P: n/a
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

"Jim H" <no****@jimsaccount.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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

Nov 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.