• Best of luck to the class of 2024 for their HSC exams. You got this!
    Let us know your thoughts on the HSC exams here
  • YOU can help the next generation of students in the community!
    Share your trial papers and notes on our Notes & Resources page
MedVision ad

Menu in VB 6 (1 Viewer)

untamedanimal

Member
Joined
Feb 27, 2004
Messages
243
How do i add a menu in VB 6. Eg like the one at the top of your browser where you click file, and then options come down?
 

sunny

meh.
Joined
Jul 7, 2002
Messages
5,350
Gender
Male
HSC
2002
You use the Menu Editor.

Open your form, then go Tools -> Menu Editor.
 

untamedanimal

Member
Joined
Feb 27, 2004
Messages
243
But when you add a menu, is there a code you need to type to make more menus come down from clicking on the menu you add. If you simply add a menu then itll just be one menu, but clicking on it wont drag down other options.
 

sunny

meh.
Joined
Jul 7, 2002
Messages
5,350
Gender
Male
HSC
2002
No code required.

You are only making one level of menus then. You need to use the Indent button in the Menu Editor to make multiple levels.
 

Winston

Active Member
Joined
Aug 30, 2002
Messages
6,128
Gender
Undisclosed
HSC
2003
You mean you want menu items?

here's how it goes

you create a menu, lets say File

so the name of it is mnuFile and the caption is File

you then click that button it's an Arrow -->

in the list you will see a set of ellipsis after clicking on the arrow
now whatever new menu's you add goes into the File menu
and when you need to make a new menu, you just click the arrow back <--

so in the list it should be like this

File
......MenuItemOfFile
......MenuItemOfFile2
......MenuItemOfFile3

Edit
......MenuItemOfEdit
......MenuItemOfEdit2
......MenuItemOfEdit3
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top