473,765 Members | 2,097 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3556
Oh, and in the child the MenuItems have there Merge Property set to
MergeItems.
"Jim H" <no****@jimsacc ount.com> wrote in message
news:%2******** ********@TK2MSF TNGP11.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****@jimsacc ount.com> wrote in message
news:%2******** ********@TK2MSF TNGP11.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
3344
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 execute an oracle procedure which has to be invoked from the above said child form. The problem now is, during this waiting time, my mdi parent's menu is appearing to be not responding (becoming white in simple words). Once the oracle procedure is...
4
2501
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 this possible?
6
1896
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 doable?
3
9703
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 parent menu functions. if i select draw line in MDI parent, the line should be drawn in current active child..any URLS for this or guide me to achieve this communication... -- Mähésh Kumär. R
4
10982
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 is what appears on the Window menu. Now, after the mdi child loads, I call a method to load a specifically named file. At this point, the child changes it's caption to reflect the new file name. Unfortunately, the Window menu does not update...
0
1146
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 item opens child form Menu item get disabled so user can't open another form User enters data into child form When user closes the child form the menu item gets enables again -- I need help with this part
4
3639
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 possible.. for example..i hav a menu in the parent form named "Administrator" whic has an item "mnuLogIn"..now when i click on login..another child form named "frmLogIn" is displayed..what i want to happen is this: when login form(frmLogIn) is...
0
1452
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 using dynamic menus where I get the values from a SQL 2000 table. I have a variable called "mnu" as the name of the child menu. I have another variable with the name of the parent menu "sct". I loop through a data table to get the child and...
0
1369
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 the page. This table also has additional right aligned cells on the same row for such things as logging out. When the child menu items are displayed by the mouse hovering over a menu item, the width of the web page is apparently increasing,...
0
9568
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9832
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8831
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7375
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5275
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5419
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3531
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2805
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.