Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Menu Order

Status
Not open for further replies.

ralphtrent

Programmer
Jun 2, 2003
958
US
Hi
I have an MDI Container with a menu, i also have an mdiChild with Menu. When I open the child, the childs menu is shown first in my menu bar. how do I reverse that. I need to keep the parent menu first.

Thanks.
 
Just a guess,

but I believe you can SetChildIndex() on menu item in the menuitem collection.

myMenu.MenuItems.SetChildIndex() ?
 
Ok I figure out how I needed to do that

Code:
 mainMenu1.MenuItems[0].MergeOrder = 0;
 mainMenu1.MenuItems[1].MergeOrder = 1;
[code]

now my problem is this:

I have to File menus on the two forms.  I am able to merge the two, but they both show up, one as it was created, the other post-merge.  How do I make the one go away.  I can not do a visible=false, becuase then they both go away.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top