Forgot Password / Register
Site Statistics
Total Members: 509
Total Tutorials: 242
Newsest User: Lestop
Todays Unique Hits: 158
0 Users 5 Guests Online

Hello, world!

Okay, this is the most simple tutorial for Visual Basic.

1. Open up VB and make 2 Command Buttons and 1 Text Box. 2. Click on F4 and the properties window will open. Then click on Command1 and look in properties, you will see something called (Name), click on it and edit the name. 3. Put in cmdEnglish instead of Command1 then click on Caption that should be in the same column as (Name) and change Command1 to English. Then do the same for Command2 but instead of cmdEnglish but cmdFrench and instead of English put French.
4. Double click on the button you called English, a window will open, copy paste the following code in it between Private Sub cmdEnglish_Click() and End sub:

Text1.Text = "Hello, world!"

Then double click on the button you called French and between Private Sub cmdFrench_Click() add:

Text1.Text = "Bonjour, univer!"

Then click F5 on your keyboard and test your script. Click on the button you called "English" and "Hello, world!" will appear in the text box. Click on the button you called "French" and "Bonjour, univer!" will appear. You can edit the texts by double clicking one of the two buttons and editing the stuff after Text1.Text = "

And voila! Those were the basics, check the other tutorials for more!
vb_king
Author:
Views:
1230
Rating:
Posted on Wednesday 11th July 2007 at 06:27 PM
gbt91
gbt91
lool Dean xD
I think so too..
anyway it's nice
Posted on Wednesday 11th July 2007 at 05:52 PM
Dean
Dean
Im sure i have seen this on some other website in the past but i may be wrong.
Posted on Wednesday 11th July 2007 at 05:26 PM
FtH8er
FtH8er
nice tutorial. looks good and i know it works, cause i have done one "LIKE" (not the same one) it before, and I just tried it lol, so ya nice one