Menu merging in MDI applications

  • Thread starter Simon Jefferies
  • Start date
S

Simon Jefferies

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:[email protected]
-
 
J

Jeffrey Tan[MSFT]

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/default.asp?url=/library/en-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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top