Visual Basic 6.0
Visual Basic 6.0
0 programming environment
In this task I will explain the environment which visual basic 6.0 uses to make the
programming easier for the programmer.
The word “Visual” refers to the way the Graphical User Interface (GUI) is designed.
With some programming languages you have to design the GUI’s by writing lots of code
to describe everything about the GUI (for example appearance, location of controls, how
to display the controls, etc). But with Visual Basic all you have to do is select the control
you want and draw it on the form. This is also known as object orientated programming.
The word basic stands for Beginners All-Purpose Symbolic Instruction Code which
refers to the coding section of the software. The actual code is very simple to use as it is
just a large section of English word to do a certain task.
The Visual Basic environment consists of seven main windows which are listed as
follows and explained in fig 1.0
1. Menu Bar
2. Toolbar
3. Toolbox
4. Form window
5. Code window
6. Project window/ explorer
7. Properties window
Fig 1.0
Fig 1.1
The project explorer window (Fig 1.1) displays the entire files linked with an application.
This project contains 4 forms.
The Toolbox
Fig 1.2
The toolbox contains the tools you use to draw controls (or components) on your forms.
Pointer
Picture box
Label
Allows you to have text that you don't want the user to change, such as a caption under a
graphic.
Text box
This control holds text that the user can change. Can be used for output or input.
Frame
Allows you to create a graphical or functional grouping for controls. To group controls,
draw the Frame first, and then draw controls inside the frame.
Displays the commands you use to work with Visual Basic. Besides the standard save,
new, open, copy, and paste button, buttons are provided to access functions specific to
programming such as Play (Run), Project explorer, or Debug.
Form window
Acts as a window that you customize to design the interface of your application. You add
controls, graphics, and pictures to a form to create the look you want. Each form has its
own form designer window.
Code editor