Lecture 1 PDF
Lecture 1 PDF
1- It's simple language. Things that may be difficult to program with other
language can be done in Visual Basic very easily.
To run Visual Basic program select, Start> Programs > Microsoft Visual
Studio 6.0> Microsoft Visual Basic 6.0 as shown in Fig.(2-1). When Visual
Basic is loaded, the New Project dialog shown in Fig.(2-2) is displayed.
The New Project dialog allows the programmer to choose what type of
Visual Basic program to create. Standard EXE, which is highlighted by
default, allows the programmer to create a standard executable. Each type
listed in Fig.(2-2) describes a group of related files called a Project.
Contains a collection of tools that are needed for project design as shown
in Fig.(2-4). To show the toolbox press View> toolbox icon. The user can
place the tool on form, and then work with the tool. To place the tool on
form: click on tool>draw tool to form > the tool appears on form or double
click on tool then the tool appears on form. Table (1) summarizes the
toolbox controls.
Statements
End Sub
2-3-2 Events:
Events are like electrical switches. The electrical switches are of many
types, so are the events. The form and controls support events
(generation, interaction with mouse and keyboard). The most important
events in Visual Basic are described in the following table.