Menus are features that are available in nearly all programs
nowadays . Making menus is very easy in Visual Basic using the menu editor . To
start the menu editor you go to Tools |
Menu Editor. The menu editor now appears , here is what is displayed on screen.
Caption : this is the name that the user will
see.
Name : this is the name that the programmer uses , we use the mnu prefix for all menu items(mnuFile).
Shortcut : this assigns a shortcut to a menu item this is a combination of keys which access a menu item for example Ctrl + c is commonly used for copy
Shortcut : this assigns a shortcut to a menu item this is a combination of keys which access a menu item for example Ctrl + c is commonly used for copy
Checked : this allows the programmer to
place a check beside a menu item , this is unchecked by default.
Enabled : This specifies whether the menu
item is accessible to the user , if this is checked the menu item is grayed out
and inaccessible.
Visible:
this determines whether the menu item is visible if this is not checked then
the menu item will not appear at run time.
WindowList
: determines whether the menu
item applies to an MDI document (Word and Excel are examples of MDI
applications).
HelpContextID : this matches a help description if
you have any in your program.
Index
: this specifies a menus
index in a control array.
You
will also have noticed the arrows these are used to manipulate manu items the
up and down arrows move the menu items up and down the list and the left /
right arrows are used to indent the menu items.