By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,795 Members | 1,761 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,795 IT Pros & Developers. It's quick & easy.

Menu merging in MDI applications

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.