Beginner's Lesson On VB.NET


This is beginner's vb.net lesson #1 on how to output a "Hello World" messsage by creating a simple program.



1. Start the VB.NET application and click on Create Project. The following screen will appear and select Windows Application and click OK.



2. An empty form will then appear. Select the Button control from the toolbar on the left hand side and drag it onto the empty form as shown in the picture below.



3. Double click on the button that you just dragged on the form. See picture below.




4. The code will then appear. Type the following code into the empty space between, as illustrated in the image below.

MsgBox("Hello World", MsgBoxStyle.OkOnly)



5. Test Run the application by pressing F5 key. Click on the button as shown in the picture below and a message box will stating "Hello World" will then appear.


----- End of tutorial. ------


Back to VB Egg

0 comments