Changes

Jump to: navigation, search

Creating Top-Level Menus in Visual Basic

1,019 bytes added, 20:22, 23 July 2007
Creating a Top-Level Menu
[[Image:Exampl.jpg]]
 
Click on the ''Type Here'' field and type ''&Open File...''. When you have entered this text Visual Studio will add another ''Type Here'' field beneath the "Open File" entry. Click in this field and enter ''&Read File...''. Once again, Visual Studio provide the opportunity to add another item. This time, however, we are going to add a different type of item to the menu. As you move the mouse pointer over the ''Type Here'' field, the field will highlight and a down arrow will appear to the right of the ''Type Here'' text. Clicking on this arrow drops downb a menu of items to add to the menu:
 
[[Image:Exampl.jpg]]
 
The options available are as follows:
 
* '''MenuItem''' - Creates a sub-menu (also known as a pull-right menu) which essentially pops up a new menu to the right of the currently displayed menu.
 
* '''ComboBox''' - adds a combobox control to the menu. although you have the option of adding a combobox to your menu you should resist the urge to do so. comboboxes are generally not placed in menus.

Navigation menu