Menus and tool bars in visual basic, Visual Basic Programming


The Menu options can be checked, enabled, disabled, and popped up on an object.

The Menu Object:

The Menu control is used to generate a menu in the Visual Basic. It has numerous properties and only an event. It has no methods. A menu has titles like Project. Each title holds menu items. A separator can be used to group the associated items within one menu. The menu editor is used for generating the menu.

The Menu Editor:

Select the Tools and then Select the Menu Editor to open the menu editor. The menu editor will exhibit the properties as shown in figure. The significant properties are checked, caption, enabled, Name, shortcut & visible. Now Click on the form to make it the active form. Then only, the menu editor will be enabled. Or else it will be grayed and it cannot be selected.

(i) The Caption Property:

The Caption Property is the item's name or the title name. The text we type as the caption becomes the title or item under the title. You can set an & before any character of the caption. That character will be the accelerator for that item.

(ii)The Checked Property:

The Checked Property will put a check mark next to the menu item. The Title's cannot be checked. The check mark can be toggled. The checked property can be put to on or off during the run time.

(iii)The Enabled Property:

This property when put to FALSE will disable the menu item. At the run time you can facilitate the property.

Posted Date: 10/9/2012 8:59:26 AM | Location : United States

Related Discussions:- Menus and tool bars in visual basic, Assignment Help, Ask Question on Menus and tool bars in visual basic, Get Answer, Expert's Help, Menus and tool bars in visual basic Discussions

Write discussion on Menus and tool bars in visual basic
Your posts are moderated
Related Questions
Dialog Based Application: (A) Dialog Based Application to demonstrate Animate Control: 1. Build a dialog based application. 2. Design the dialog as shown. 3. Place

You can employ until keyword in two ways to verify a condition in a Do...Loop statement. You can verify the condition before you enter the loop (as illustrated in the following Chk

While a run-time error takes place, the properties of the Err object are filled with information which uniquely identifies the error & information which can be used to handle it. I

Steps for Creating A MDI Form: 1. Build a new form and set IsMdiContainer property to true. 2. Build a child form class to add to the form. 3. Now Right click the proj

A variable is convenient placeholder which refers to a computer memory location where you can store program information which may change when your script is running. For instance,

I have a tiff image of 25 pages. I capture particular square from particular page and past on one excel sheet one by one. it is possible, if yes how. Image have line no and pe

INTRODUCTION TO VB: The Windows programming is an event driven programming. The VB uses the Hungarian Notation for naming the variables. It deals with new data types like HWND,

what are the things that information system can do and their limitations?