VB.NET program structure



Imports System

Module Module1

    Sub Main()

        Console.WriteLine("My First VB.NET Program")

        Console.Read()

    End Sub

End
Module

OUTPUT

My First VB.NET Program

NOTE

1. VB.NET is purely object orriented programming language , the application development is not possible without module or class.
2. The method with in module is shared by default , module is similar to class.
3. Shared method can be executed without object creation.