It is a time-honored tradition to start a programming book with a "Hello World" program. In this chapter, we will create, compile, and run a simple "Hello World" program written in Visual Basic .NET. The analysis of this brief program will introduce key features of the Visual Basic .NET language.
Example 2-1 illustrates the fundamental elements of a very simple Visual Basic .NET program.
Module HelloWorld ' every console app starts with Main Sub Main( ) System.Console.WriteLine("Hello World") End Sub End Module
That is the entire program. Compiling and running it displays the words "Hello World" at the console.
Top |