1. Home
  2. Computing & Technology
  3. Visual Basic
Migrating the Menu to VB .NET
VB 6 and VB .NET Menu Programming
Menu
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.
 More of this Feature
• Part 2: Entering the Event Code for the Menu
• Part 3: The Other VB 6 Menu Editor Options
• Part 4: VB .NET Menu Creation
• Part 5: The About Visual Basic Menu
 


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.

The VB 6 Menu Tool

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).

Creating a VB 6 Menu

Next page > Entering the Event Code for the Menu > Page 1, 2, 3, 4, 5
Explore Visual Basic
By Category
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Visual Basic

©2009 About.com, a part of The New York Times Company.

All rights reserved.