VB.NET menu

M

Mahesh.V

Hi All
Am using VB.NET menu object. I have a MDI screen and menu is attached to
the MDI screen. When I try to open a child window with in the MDI, the Child
window's menu gets appended to the MDI menu. So now I see two menus in one
menu bar. Usually in VB and in others when ever a child window is opened the
menu of the child window will be replaced with the MDI menu and activating
and deactivating the subsequent windows will hide and show the dependent
menus. How to do this in VB.NET menu.

Thanks in advance
Mahesh.V
 
P

Peter Proost

Hi,

I think you need to look at a menuitems, MergeType and MergeOrder property

hth

Greetz Peter
 
H

Herfried K. Wagner [MVP]

Mahesh.V said:
Am using VB.NET menu object. I have a MDI screen and menu is attached
to
the MDI screen. When I try to open a child window with in the MDI, the
Child
window's menu gets appended to the MDI menu. So now I see two menus in one
menu bar. Usually in VB and in others when ever a child window is opened
the
menu of the child window will be replaced with the MDI menu and activating
and deactivating the subsequent windows will hide and show the dependent
menus.

You can control the merge behavior by setting the menu items' 'Merge*'
properties to an appropriate value.
 

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