O'Reilly logo

Application Development Using Visual Basic® and .NET by Dana L. Wyatt, Peter Thorsteinson, Robert J. Oberg

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hello World in VB.NET

Whenever learning a new programming language, a good first step is to write and run a simple program that will display a single line of text. Such a program demonstrates the basic structure of the language, including output. Here is “Hello, world” in VB.NET (See the Hello directory for this chapter.)

' Hello.vb

Module Hello
   Public Sub Main()
      System.Console.WriteLine("Hello, world")
   End Sub
End Module

Compiling and Running (Command Line)

We already introduced the Microsoft Visual Studio .NET IDE (integrated development environment), and you can learn more in Appendix A.You can also use the command-line tools of the .NET Framework SDK. You will almost always use Visual Studio to build your programs rather than the command-line ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required