Hello World
Learn how to output Hello World using Visual Basic 6 with this Tutorial that Celebrates the CESPage 25th Anniversary
Hello World is the universally recognised first stage of a Tutorial used in every programming language and in this case for Visual Basic 6 but can be done in any version of Visual Basic, this Tutorial is presenting using the original Images and Code.
Step 1
![New Project](../assets/fignewproject.gif)
Step 2
![Blank Form](../assets/figform1.gif)
Step 3
![Command Button Control](../assets/figcommand.gif)
Step 4
![Form with Command Button](../assets/figform1but.gif)
Step 5
Caption
property
from Command1
to Click Here
![Command Button Properties](../assets/figcomprop.gif)
Step 6
Double Click on the Command Button and type in the Command1_Click()
Sub:
MsgBox "Hello World",vbInformation,"Test"
See Below:
Step 7
![Start / Run](../assets/figstart.gif)
![Hello World Running](../assets/figapprun.gif)
Step 8
![Hello World Message](../assets/fighello.gif)
Step 9
![End / Stop](../assets/figend.gif)
That was your first working Visual Basic Application! Try changing the Text
or the Title
, which is the last part after the
vbInformation
remark, or have a go at changing the code and extending it, you can learn a lot from this simple application!