Visual Basic: The “Hello World” Program
Posted: January 31st, 2012 | Author: Brian Martin (BlinkBrian) | Filed under: Visual Basic Tutorial (Series) | No Comments »31 January 2012
In the last tutorial, we looked at the Visual Basic: Programming Environment
All tutorials start off with “Hello World” so why break a habit of a life time! The end result will be the program outputs “Hello World” but also teaches you some of the basics to!
Type in to your text editor;
Console.WriteLine (“Hello World”)
Console.Readline()
The lines need to go after the “Sub Main” and before “End Sub” as shown below.
Sub Main()
Console.WriteLine(“Hello World”)
Console.ReadLine()End Sub
Debug
- Press F5 to test your program. What do you see?
Did you see this?

Note how the text around the brackets will be displayed on the screen. “Hello World”
| Output Operators – Summary | |
| Purpose | To Display Text to the user |
| Code: | Console.Writeline(“text”) or Console.Write(“text”) |
| Example: | Console.Writeline(“Hello World”) |
Remember: Literal text must be enclosed by double quotes.
In the next tutorial, Visual Basic: Input Operators & Variables
Follow Visual Basic Tutor via Twitter.
Leave a Reply