Вы находитесь на странице: 1из 2

Programming 2 VB 6.

Visual BASIC - is a third-generation event-driven programming language and integrated development


environment (IDE) from Microsoft for its Component Object Model (COM) programming model first
released in 1991 and declared legacy during 2008. Microsoft intended Visual Basic to be relatively easy
to learn and use.

1991 – Introduced the two versions of Visual BASIC for DOS version and WINDOWS version
VB 1.0 – Windows Version
Turbo BASIC or QBASIC – DOS Version
1993 – Introduced VB 3.0
1994 – Introduced VB 4.0
1995 – Introduced VB 5.0
1996 – Introduced VB 6.0 successor version of VB
Alan Cooper – Father of Visual BASIC programming
Microsoft – Publisher of Visual BASIC programming

Visual BASIC 3 Modes


 Design mode - when you are writing code or designing a form.
 Run Mode - occurs when a procedure is running. To run (or execute) a procedure, just place the
cursor anywhere within the procedure code and hit the F5 key (or select Run from the Run menu).
 Break mode - is entered when a running procedure stops because of either an error in the code or
a deliberate act on your part

Visual BASIC 6 Windows IDE

 Main Window – consist of Title bar, Menu bar, and Toolbar


 Toolbox - contains a set of controls that are used to place on a Form at design time thereby
creating the user interface area.
 Project Explorer - serves as a quick reference to the various elements of a project namely form,
classes and modules.
 Properties Window -exposes the various characteristics of selected objects.
 Form Layout Window – serve as relative monitor screen.
 Form Window – knows as the Object, consist of pixels.

Visual BASIC Controls

 Pointer -Provides a way to move and resize the controls form


 PictureBox -Displays icons/bitmaps and metafiles. It displays text or acts as a visual
container for other controls.
 TextBox -Used to display message and enter text.
 Frame -Serves as a visual and functional container for controls
 CommandButton -Used to carry out the specified action when the user chooses it.
 CheckBox -Displays a True/False or Yes/No option.
 OptionButton -which is a part of an option group allows the user to select only one option even
it displays multiple choices.
 ListBox -Displays a list of items from which a user can select one.
 ComboBox -Contains a TextBox and a ListBox. This allows the user to select an ietm from
the dropdown ListBox, or to type in a selection in the TextBox.
 HScrollBar and VScrollBar -These controls allow the user to select a value within the
specified range of values
 Timer -Executes the timer events at specified intervals of time
 DriveListBox -Displays the valid disk drives and allows the user to select one of them.
 DirListBox -Allows the user to select the directories and paths, which are displayed.
 FileListBox -Displays a set of files from which a user can select the desired one.
 Shape -Used to add shape (rectangle, square or circle) to a Form
 Line -Used to draw straight line to the Form
 Image -used to display images such as icons, bitmaps and metafiles. But less capability than the
PictureBox
 Data -Enables the use to connect to an existing database and display information from it.
 OLE -Used to link or embed an object, display and manipulate data from other windows based
applications.
 Label -Displays a text that the user cannot modify or interact with.

Arithmetic Operators in Visual Basic


Arithmetic operators - are used to perform many of the familiar arithmetic operations that
involve the calculation of numeric values represented by literals,
Variables, other expressions, function and property calls, and constants.

Operator -is a symbol that tells the compiler to perform specific mathematical or logical
manipulations.

Вам также может понравиться