Send a suggestion!

We're building a brand new version of the site, and we'd love to hear your ideas

Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

Rated
Read 31,021 times

Contents

Related Categories

Menus - Creating 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

James first started writing tutorials on Visual Basic in 1999 whilst starting this website (then known as VB Web). Since then, the site has grown rapidly, and James has written numerous tutorials, articles and reviews on VB, PHP, ASP and C#. In October 2003, James formed the company Developer Fusion Ltd, which owns this website, and also offers various development services. In his spare time, he's a 3rd year undergraduate studying Computer Science in the UK. He's also a Visual Basic MVP.

Comments

  • help with the code

    Posted by minor on 28 Apr 2003

    In this tutorial i dosent tell you the code for the menu. and im also very new to vb so if someone could tell me what i need to do for the code that would be great.

  • VFlags variable not defined?

    Posted by planethax on 17 Nov 2002

    I have made a menu with1 1 Item (about) set it to enable - unchecked visable
    made a click event(msg box)

    then in my form mouse up event I put
    [code]
    Private Sub Form_MouseUp(Button As Integer, ...

  • Posted by James Crowley on 20 May 2002

    sorry 'bout that... there was an old style link lurking in there... I have corrected the link on

    http://www.developerfusion.com/show/15/10/, which now points to

    http://www.developerfusion.com/sh...

  • example

    Posted by Rollershade on 20 May 2002

    i click view an example and no example???
    i really want to change the look of my menu,change color or nything? ny ideas?