First, install a version of Microsoft Visual Studio, including the free Community edition. Then, create a Visual Basic Console Application project of type Console Application, and the following code will print the string 'Hello World'
to the Console:
Module Module1
Sub Main()
Console.WriteLine("Hello World")
End Sub
End Module
Then, save and press F5 on the keyboard (or go to the Debug menu, then click Run without Debug or Run) to compile and run the program. 'Hello World'
should appear in the console window.