VB.NET Hello World Program In Visual Studio 2022

VB.NET Hello World Program In Visual Studio 2022

Now in this project, we will create our Hello world VB.NET program.

A VB.NET

Create a Hello_Program.vb file in MYConsoleApp1 project and write the following code:

Hello_Program.vb

  1. Module Module1  
  2.   
  3.     Sub Main()  
  4.   
  5.         Console.WriteLine("Hello, Welcome to the VB.NET")  

  6.         Console.ReadKey()  
  7.   
  8.     End Sub  
  9.   
  10. End Module  

Let's compile and run the above program by pressing the F5 key, we get the following output.

Output:

VB.NET Hello World Program

Comments