background image

First VB.NET program

<< Microsoft Internet Explorer | Namespace HelloWorldSample >>
<< Microsoft Internet Explorer | Namespace HelloWorldSample >>
The following figure illustrates the flow of activities from the source code to its
execution.
3.2 First VB.NET / C# program

To start of with any language it's always worth writing a simple program, which actually
does nothing but displays a "HelloWorld" string in the screen. Taking this simple
program we will try to figure out how .NET framework delivers a successful
HelloWorld.exe. Well to write such a complex program we will go for our favorite editor,
the choice is unanimous, it's "Notepad".
First VB.NET Program

Figure showing HelloWorld program written using VB.NET
'This is the famous HelloWorld Program written using VB.NET
Namespace
HelloWorldSample

'Definition of the Class
Public
Class
HelloWorld
'entry point method for the Class
Public
Shared
Sub
Main()