| Migrating the Menu to VB .NET | |||||||
| VB 6 and VB .NET Menu Programming | |||||||
![]() Menus are often the most important part of a system's user interface. And like everything else in VB .NET, a lot has changed. Starting with a very brief review of VB 6 menu creation, we'll show you how to create great menus in VB .NET, including a trick that isn't in the Help system. |
|||||||
Menus are extraordinarily useful in building user interfaces. They go back to the earliest DOS programs where programmers even created early versions with very creative DOS "batch" (.BAT) files. In pre .NET Visual Basic, menus are created using a special dialog - called the Menu Editor - that can be found under the Tool menu. Here's an example of a very simple menu being created. Programmers are often confused by the arrow keys. Rather than being "cursor control" keys as you might expect, these keys control the placement of the information entered into the top part of the Menu Editor. To create the first top level item, fill in the information in the Caption and Name properties. Then to create a submenu under this top level menu item, click Next (1) to move down to the next position and click the right arrow (2) to indent to the first submenu. Then fill in the Caption and Name for this submenu (3). |
|||||||



