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

menu on a child form

P: n/a
When I add a main menu to a child form in an mdi app, and use this code, the
menu does not merge (I do not want it to merge with the parent's menu):
Dim i As Integer

For i = 0 To MainMenu1.MenuItems.Count - 1

MainMenu1.MenuItems(i).MergeType = MenuMerge.Remove


But I want the menu to appear on the child form, and it does, so long as I
don't really make it a child. If I call it like this:

Dim newmdichild As New buttonstest

'newmdichild.MdiParent = Me


it's a happy camper, but it is not a child form and it disappears behind the
mdi parent when it doesn't have focus. But when I uncomment
'newmdichild.mdiparent = me, the form is now a child form but it has no

What I want is for it to have its own menu and be a child form at the same
time. How can this be done?

Tx for any help.

Bernie Yaeger

Nov 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.