473,508 Members | 2,303 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1530
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
3541
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
1135
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
2104
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
6949
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
1526
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
2413
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
244
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
1796
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
848
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
7225
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
7123
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7324
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7382
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...
1
7042
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
5627
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,...
0
4707
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...
0
3181
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1556
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.