Returns or sets the active menu object on the form.
Object.MenuBar [ = pMenuBar ]
The MenuBar property syntax has the following parts:
Name |
Type |
Description |
Object |
AForm |
AForm object |
pMenuBar |
AMenu |
The active menu object on the form. |
A form can have multiple menu bars, with different menu choices. Only one menu bar can be displayed at a time, use this property to set the current menu.
The following example make sure that mnu1 is the current menu bar:
if MenuBar<>mnu1
MenuBar=mnu1
endif