You are on page 1of 8

Hello World in VB

Start VB
New Project Standard .exe
Click the Button control on the ToolBox and drag
in the form
Double click the new button to invoke the code
editor
Enter code:
Click the Run button
Private Sub Command1_Click()
MsgBox ("Hello world")
End Sub
Exercise try this out
What is Visual Basic?
Kemeny and Kurtz Dartmouth
College 1964
For students simple interpreted
Many versions since
MS VB versions more power not
so simple
VBScript VBA .NET framework
RAD especially of user interface
A very early version
VB is not..
Vendor independent
Platform independent
Based on a constant language definition
Separated definition and IDE implementation
Well documented
(IMO) suitable for very large projects which must
be maintained over a long period of time
VB is ..
easy to use
suitable for RAD
very marketable
Building an application - steps
Commercial data driven waterfall model project
management
Science/engineering underlying data and physical
model, algorithms, testing
In VB RAD focus on user interface prototyping and
review.
Building an application - forms
VB uses 'form' to mean Window
Info on form stored in a .frm file
VB system draws form based on that info
Forms can be treated like classes in OOP - later

You might also like