Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> Visual Basic >> Snippet

21 Controls


.. As part of its graphical Interface , VB allows the programmer To build
simple Interface objects, such As textboxes, buttons And checklists
by simply drawing them With a mouse.

The objects are called controls.  VB comes With 20 built - In (intrinsic)
controls.  These 20 are part of the VB run - time files.

01 ADO Data Control acts As Interface between database And other databound controls
02 Checkbox    status Is checked Or Not checked
03 ComboBox    combination of a textbox And a listbox
04 Command Button  press a button To execute a block of code
05 DirListBox   DirList / DriveList / FileList work together To naviate folder Structure of Windows
06 DriveListBox   DirList / DriveList / FileList work together To naviate folder Structure of Windows
07 FileListBox   DirList / DriveList / FileList work together To naviate folder Structure of Windows
08 Frame    Container For holding other controls
09 Horizontal Scroll Bar slider For adjusting values
10 Image    displays a picture
11 Label    displays text, edit In code only
12 Line     simple graphics control To display a line of various formats
13 ListBox    vertical list of text strings, Each accessible by code
14 OLE Container  can use To add objects from other applications, such As an Excel worksheet
15 Option Button  only 1 of a group may be selected at a time
16 Picturebox   displays a picture, text / graphics can be drawn On it,
17 Shape    simple graphics control To display basic shapes (square, circle)
18 Textbox    basic text entry, can be multiline, text can be highlighted
19 Timer    creates an Event over a user - defined interval
20 Vertical Scroll Bar slider For adjusting values