473,385 Members | 1,347 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,385 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 1514
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.