Toolbox

See Also9LFLGC

The Toolbox displays all the standard Visual Basic controls plus any custom controls you have added to your project.  You choose a tool by clicking it.

         To open the Toolbox, choose Toolbox from the Window menu.

         To close the Toolbox, double-click the Toolbox's Control menu1LEPVNO.

 

There are 21 basic tools in the Toolbox:

Pointer.  This is the only item in the Toolbox that doesn't draw a control.  Use it to resize or move a control after it's been drawn on a form.

Picture Box31MYIWX  Use to display graphical images (either decorative or active), as a container that receives output from graphics methods, or as a container for other controls.

Label3MNIZ8D  Use for text that you don't want the user to change, such as a caption under a graphic.

Text BoxYPYZDG  Use to hold text that the user can either enter or change.

Frame1KX6ZP8  Use to create a graphical or functional grouping for controls.  To group controls, draw the frame first, then draw controls inside the frame.

Command ButtonXJSPC0  Use to create a button the user can choose to carry out a command.

Check Box9P3BU5  Use to create a box that the user can easily choose to indicate if something is true or false, or to display multiple choices when the user can choose more than one.

Option ButtonJYBO08  Use in a group of option buttons to display multiple choices from which the user can choose only one.

Combo Box1YZXFF6  Use to draw a combination list box and text box.  The user can either choose an item from the list or enter a value in the text box.

List BoxG11UCK  Use to display a list of items from which the user can choose one.  The list can be scrolled if it has more items than can be displayed at one time.

Horizontal Scroll Bar1JSJOS7  Use to provide a graphical tool for quickly navigating through a long list of items or a large amount of information, for indicating the current position on a scale, or as an input device or indicator of speed or quantity.

Vertical Scroll Bar1JSJOS7  Use to provide a graphical tool for quickly navigating through a long list of items or a large amount of information, for indicating the current position on a scale, or as an input device or indicator of speed or quantity.

Timer3MVR08J  Use to trap timer events at set intervals.  This control is invisible at run timeCYRM35.

Drive List Box5WJO0PW  Use to display the valid drives in a selected drive.

Directory List BoxO9U5A0  Use to display a hierarchical list of directories in the user's system.

File List Box1M6S8UX  Use to display a list of files that the user can open, save, or otherwise manipulate.

Shape9JZFLA  Use to draw a variety of shapes on your form at design time.  You can choose a rectangle, rounded rectrangle, square, rounded square, oval, or circle.

LineTW530P  Use to draw a variety of line styles on your form at design time.

Image9A4FCA  Use to display a graphical image from a bitmap, icon, or metafile on your form.  Images displayed in an image control can only be decorative and use fewer resources than a picture box.

Grid2VGT0PT  Use to create a spreadsheet-like grid consisting of columns and rows of data.

OLE Control2HQDVVU  Use to provide object linking and embedding (OLE) from an OLE server into your Visual Basic application.

Data Control2E1FEX3  Use to provide access to data in databases through bound controlsLVLJ7W on your form.

Common Dialog1H1HYJI  Use to create common types of dialog boxes for opening or saving files, setting fonts or colors.

 

         When you select the pointer, you will be able only to resize or move a control.

         When you select any other tool, you can use it only to draw new controls.

         Once you draw a control, the pointer is automatically reselected.


See Also

Help:

Attaching an Event Procedure to a Form or Control2LBGK4C

Controls11BTM4A

Drawing a Control2JRMWVS

Setting Form and Control Properties1NFIWMG

 

Learning Visual Basic:

How Visual Basic Works

 

Programmer's Guide:

Chapter 3, "Creating and Using Controls"