|
|
|
|
Menus
Home » Visual Basic » Buttons
Menus
Everyone knows what a menu is, the question is how can you make them in VB? Well, it turns out to be very simple. VB has a built-in menu editor that you will use and it's pretty much a no-brainer.
Menus
Everyone knows what a menu is, the question is how can you make them in VB? Well, it turns out to be very simple. VB has a built-in menu editor that you will use and it's pretty much a no-brainer. The only time menus should give you any trouble is when you want to do some of the more sophisticated tasks such as adding menus on the fly or such as providing popup menus. Considering that virtually every application I've ever written makes use of menus, I was glad to see that Microsoft made it so easy to do.
--------------------------------------------------------------------------------
Menus Are Controls!
You already have been exposed to menus. The most well known example being the File/Open menus used by most Windows programs for opening a file. What you may not know is that each of the menu selections File and Open are independent controls which VB can create for you using the menu editor. We'll get to that in just a second.
The concept that a menu selection is really a control is a very valuable piece of information because as you will see, the menu controls support properties and events, just like any other controls you're used to seeing. What this means is that you can use the experience you have in using controls to help understand menu operation.
What menus don't support are methods. If you didn't read through my control summary spreadsheet you might not have noticed it, but controls may or may not implement all three of the categories - events, methods, and properities. There's no rule that says you have to support them all, and in some cases it's just not necessary. Menu controls are like that. You'll see that properties and events are all you need.
Before we get into the menu editor, in which you can set properites of a menu
|
More Tutorials by this user
|
|
|
|
|
|
|
|
|