Title: Creating Menus in Visual Basic
1Creating Menus in Visual Basic
- Adding Complexity Without Clutter
- Or
- How to Get the Most Out of Your Forms
2Some Applications Require A Lot Of Options
- Excessive command buttons can be distracting.
- Distraction leads to confusion.
- Confusion detracts from efficiency.
3Menu Items Placed on the Top of a Form Can
Replace Several Command Buttons Without Taking up
Any Space
4You Create Menus With the Icon Menu Editor
5Lets Start One From Scratch...
6Using a Simple Form, Select Menu Editor
A pop-up window called Menu Editor will
appear. Key File into the Caption box. This is
the name that will appear on the form. Then key
mnuFile in the Name box. This is how Basic will
track the event. Notice the 3-character prefix
mnu
7Now Do the Same for the Rest...
- Notice certain conventions like...
- Name carries the name New as well as the menu
item from which it came. - A shortcut is added
- In the window, New is moved to the left with
the arrow button making New subordinate to File
8Now Lets Go Into the Code...
9The Names You Made Are the Control Names in the
Object Box
10...And the Properties Are Pre-set
(Name) came from the Menu Editor as well as your
caption and hot key () designation. Just like a
check box, Checked is set to False
11Lets Now Move Directly Into the Program Demo...