473,320 Members | 1,861 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,320 software developers and data experts.

Menu merging in MDI applications

Hello,

Whats the best way to merge menus together? I have an MDI application with a
simple main menu with items like File, Edit, View, Tools and Help etc. I'd
like the MDI child windows to add their own menus to the main menu of the
application. I have noticed that they seem to go on the end. Is there any
way to set the order of the combined menu items?

So that:

File Edit View Tools Help ChildMenu1 ChildMenu2

becomes something like:

File Edit View ChildMenu1 ChildMenu2 Tools Help

Thanks In Advance

--
Regards
Simon Jefferies
Tools Programmer, Headfirst Productions
mailto:si****@headfirst.co.uk
-
Nov 20 '05 #1
4 1509
Hi Simon,

Based on my understanding, you want to control the order of the menu merge.

Actually, the MenuItem has a MergeOrder property which you can control the
item order.

For your certain issue, you should set the Container Form's 4th and 5th
menuitem to back 2 orders, like this:
this.mainMenu1.MenuItems[3].MergeOrder=2;
this.mainMenu1.MenuItems[4].MergeOrder=2;

For more information, please refer to article:
"Working with MDI Applications and Creating Menus"
http://msdn.microsoft.com/library/de...us/dndotnet/ht
ml/mdiappsmenus.asp

=========================
Please apply my suggestion above and let me know if it helps resolve your
problem.

Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 20 '05 #2
Hi Simon,

Based on my understanding, you want to control the order of the menu merge.

Actually, the MenuItem has a MergeOrder property which you can control the
item order.

For your certain issue, you should set the Container Form's 4th and 5th
menuitem to back 2 orders, like this:
this.mainMenu1.MenuItems[3].MergeOrder=2;
this.mainMenu1.MenuItems[4].MergeOrder=2;

For more information, please refer to article:
"Working with MDI Applications and Creating Menus"
http://msdn.microsoft.com/library/de...us/dndotnet/ht
ml/mdiappsmenus.asp

=========================
Please apply my suggestion above and let me know if it helps resolve your
problem.

Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 20 '05 #3
Cheers! Works a treat! :-)

--
Thanks
Simon Jefferies
Tools Programmer, Headfirst Productions
mailto:si****@headfirst.co.uk
-
""Jeffrey Tan[MSFT]"" <v-*****@online.microsoft.com> wrote in message
news:3M**************@cpmsftngxa06.phx.gbl...
Hi Simon,

Based on my understanding, you want to control the order of the menu
merge.

Actually, the MenuItem has a MergeOrder property which you can control the
item order.

For your certain issue, you should set the Container Form's 4th and 5th
menuitem to back 2 orders, like this:
this.mainMenu1.MenuItems[3].MergeOrder=2;
this.mainMenu1.MenuItems[4].MergeOrder=2;

For more information, please refer to article:
"Working with MDI Applications and Creating Menus"
http://msdn.microsoft.com/library/de...us/dndotnet/ht
ml/mdiappsmenus.asp

=========================
Please apply my suggestion above and let me know if it helps resolve your
problem.

Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 20 '05 #4
Cheers! Works a treat! :-)

--
Thanks
Simon Jefferies
Tools Programmer, Headfirst Productions
mailto:si****@headfirst.co.uk
-
""Jeffrey Tan[MSFT]"" <v-*****@online.microsoft.com> wrote in message
news:3M**************@cpmsftngxa06.phx.gbl...
Hi Simon,

Based on my understanding, you want to control the order of the menu
merge.

Actually, the MenuItem has a MergeOrder property which you can control the
item order.

For your certain issue, you should set the Container Form's 4th and 5th
menuitem to back 2 orders, like this:
this.mainMenu1.MenuItems[3].MergeOrder=2;
this.mainMenu1.MenuItems[4].MergeOrder=2;

For more information, please refer to article:
"Working with MDI Applications and Creating Menus"
http://msdn.microsoft.com/library/de...us/dndotnet/ht
ml/mdiappsmenus.asp

=========================
Please apply my suggestion above and let me know if it helps resolve your
problem.

Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jim H | last post by:
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...
0
by: Naresh Narwani | last post by:
Problem Summary: Merging two different web applications into one create a problem for User Controls. Reason for merging two different Web Application: To share non serializable object...
1
by: Jeff Brown aka BrntPhish | last post by:
Can someone explain what the properties for merging menus are and how they work. I have a MDI Parent form with file, edit ...etc etc I also have a MDI Child Form with file edit & a menu that...
4
by: jon morgan | last post by:
Hello, In an MDI application how can I prevent the CLR automatically merging a child windows' menu with that of the parent MDI form ? Thanks for any help Jon
6
by: Uncle_Albert | last post by:
Hi there, Trying to get to grips with MDI applications at the mo and having a bit of trouble with the basics. What I have at the mo is the parent form loading and immediately displaying a...
2
by: Dave Taylor | last post by:
Is there a decent explanation of how menu merging with MDI forms work in VB.NET? I've read through the online help and it still seems that whenever I change menus around or whatever, it breaks...
0
by: Simon Jefferies | last post by:
Hello, Whats the best way to merge menus together? I have an MDI application with a simple main menu with items like File, Edit, View, Tools and Help etc. I'd like the MDI child windows to add...
0
by: Amiram Korach | last post by:
When you create a MDI form, you can attach a main menu to the parent and to the child. When a child form is active, its menu is merged with the parent menu. The problem is: when the forms are...
0
by: **Developer** | last post by:
Been experimenting with menu items merging and it seems to me that all I need is Replace and Remove If the item is not already there Add, Merge and Replace all seem to add it. If it is already...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.