Go Back   techBB > Tutorial Zone > Programming
Reply
 
Thread Tools Search this Thread Display Modes
(#1)
Old
Elderwind's Avatar
Elderwind
Smexyness
Elderwind is on a distinguished road
 
Default [VB/VB.net] Hello World - 12-10-2007, 05:29 AM

MsgBox Way
Difficulty: 1/5
Alright, the basic Hello World program for beginners...

First, open Visual Basic 6 or Visual Basic 05/08 Express and start a new project

Then, double click the empty form, and the code window will appear. You should be inside the Form_Load procedure. In between the Form_Load and the End Sub add:
Code:
MsgBox "Hello World!"
End
And run your program. Congratulations, you just finished the basic Hello World program
--------------------
Print Way
Difficulty 1/5

We are going to start a new project, just like we did in the MsgBox way. When it starts up, click on the form, and then look to the properties panel. You should see a option called Auto-Redraw and it is set to false. Change it to true, and then double click the empty form. Then, in the Form_Load procedure, add:
Code:
Print "Hello World!"
And then run your program, and it should print out "Hello World!"


Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2007, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com