Introduction to Visual Basic
Chulantha Kulasekere
VB IDE
Explanation of IDE
Project: A collection of files for easy
management.
[Link]: Should be used if the file is
an executable.
It will open a blank form to write your
application.
VB Environment
Creating Your First Program
Insert a LABEL
and a
COMMAND
button on the
form
Double click on
the FORM to
open the CODE
Window.
Creating Your First Program
Object box
The drop down
menues will
show the items
you inserted in
the form.
Procedure box
Display Data OnClick
Writing a VB Application
There are three basic steps to write a
program.
Step 1 : Design the interface
Step 2 : Set Properties of the controls
(Objects)
Step 3 : Write the events' procedures
Writing the Application
Insert three labels and change the names.
Use the properties window to adjust the
height and width.
Insert three text boxes and given names
as well.
Insert a command button and also do the
same. Change its name and caption to OK
in the properties window.
Change location to make GUI attractive.
Result
The Program