Vbasic PDF
Vbasic PDF
Vbasic PDF
An Introduction
Why Visual Basic?
H Programming for the Windows User
Interface is extremely complicated.
H Other Graphical User Interfaces (GUI) are
no better.
H Visual Basic provides a convenient method
for building user interfaces.
H Visual Basic can interface with code written
in C, for efficiency.
What Visual Basic is not
H Visual Basic is not, a powerful
programming language that enables you to
do anything you want.
H Visual Basic is not, elegant or fast.
H Visual Basic is not, a replacement for C.
H Visual Basic is not, anything like any other
programming language you have ever used.
When You Program in VB:
H You draw pictures of your user interface.
H You draw buttons, text boxes, and other
user-interface items.
H You add little snippets of code to handle the
user interaction.
H You add initialization code, usually as the
last step.
H If you like, you can code more complex
functions. (But many do not.)
The Visual Basic Interface
Draw Your
Program
Here!
Drawing The Program
Single-Click to
Select and
Change
Properties
VB:
Declare Function HexToLong Lib “FIRSTONE.DLL”
(ByVal InString As String) As Long
While <condition> do
<List of Statements>
Wend
Go
Have
Fun!
Visual Basic Programming
An Introduction
Why Visual Basic?
H Programming for the Windows User
Interface is extremely complicated.
H Other Graphical User Interfaces (GUI) are
no better.
H Visual Basic provides a convenient method
for building user interfaces.
H Visual Basic can interface with code written
in C, for efficiency.
What Visual Basic is not
H Visual Basic is not, a powerful
programming language that enables you to
do anything you want.
H Visual Basic is not, elegant or fast.
H Visual Basic is not, a replacement for C.
H Visual Basic is not, anything like any other
programming language you have ever used.
When You Program in VB:
H You draw pictures of your user interface.
H You draw buttons, text boxes, and other
user-interface items.
H You add little snippets of code to handle the
user interaction.
H You add initialization code, usually as the
last step.
H If you like, you can code more complex
functions. (But many do not.)
The Visual Basic Interface
Draw Your
Program
Here!
Drawing The Program
Single-Click to
Select and
Change
Properties
VB:
Declare Function HexToLong Lib “FIRSTONE.DLL”
(ByVal InString As String) As Long
While <condition> do
<List of Statements>
Wend
Go
Have
Fun!