Home >>VB.Net Programs >Program to Print Hello World in VB.NET

Program to Print Hello World in VB.NET

How to Print Hello World in VB.NET

We will build a VB.Net program to print a Hello World message on the console screen using the WriteLine() Console Class method.

Program/Source Code:

Below is the source code for print 'Hello World' on VB.NET. The program given is compiled and successfully executed.

Example


	Module Module1   
    Sub Main()
        Console.WriteLine("Hello World")
        Console.ReadLine()
    End Sub
	End Module
	
Output:
Hello World

Explanation:

In the above program, we created a module containing the Main() method, where we printed the "Hello World" message on the console screen using the WriteLine() Console Class method.


No Sidebar ads