473,395 Members | 1,440 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

MDI child for and it's menu

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
2 3531
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: jinu | last post by:
Hello, My application loads with a form which is the mdi parent and a menu item click (main menu of the parent form) brings up a child form. I have to wait for a considerable amout of time to...
4
by: Sean Connery | last post by:
I know I can merge a child forms menu into the MDI parent's mainmenu, but I would also like to listen for common events fired from the mainmenu that might be of interest to any child forms. Is...
6
by: Tom | last post by:
Rather than merge child menus, I would like for some common functionality between various MDI child forms to process an event fired from the main menu, depending on who is in focus. Is this...
3
by: Maheshkumar.R | last post by:
Hi groups, How i can command over the MDI CHIlD forms created dynamically at runtime from PARENT. Let say, i have generated 5 mdichild forms, but i want to work with child form1 from MDI...
4
by: Steve Barnett | last post by:
I've created a simple MDI application and have designated the Window menu to keep track of the mdi children. When I first load an mdi child, it's caption consists of "File: no file loaded" and this...
0
by: Jake Wiley | last post by:
I need to enable a menu item on a parent based on the closing of a child form. I need help in general on how to let the parent know the child has closed. Here are the basic steps I've done: Menu...
4
by: raj_genius | last post by:
I hav two queries, whc are as follows: FIRSTLY: is it possible to access the controls(by name) of a parent form(MDI) from its child forms??if yes then how??plzz provide a coded example in VB if...
0
by: ILCSP | last post by:
Hello, I have a VB.Net project where I have created a dynamic menu. This menu has 2 parents (File and Edit) and I need to place 3 child submenus under Edit at runtime. The problem is that I am...
0
by: jojobar | last post by:
We are using the ASP:Menu control (horizontal) for site navigation. The menu is contained by a table with css styles that allows us to give the illusion of a menu bar that runs the entire width of...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.