Menus

Creating menus

To create menus in VB you use the Menu Editor. You can find this under Tools | Menu Editor. The VB Menu editor:

To create a top menu (i.e. File), use the following steps:

1) Select Tools | Menu Editor

2) Enter the text to be displayed for the menu in the Caption text box (i.e. File). As always you can use the & to set the Shortcut key: So &File would display the menu File and could be accessed by Alt+F

3) Enter a name for the menu. This will be used when accessing the menu's properties in your code.

4) Make sure that there are no dots before File in the list box (i.e. ...File). If there are, press the < button on the dialog box until there are none. These will be explained later.

5) Click OK. If you have used the examples, you will now see something like this:

When you click the menu, you will see there are no Menu Items. This will be explained in the next section

You might also like...

Comments

About the author

James Crowley

James Crowley United Kingdom

James first started this website when learning Visual Basic back in 1999 whilst studying his GCSEs. The site grew steadily over the years while being run as a hobby - to a regular monthly audien...

Interested in writing for us? Find out more.

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“You can stand on the shoulders of giants OR a big enough pile of dwarfs, works either way.”