

If you are using Visual Studio.Net IDE, take the following steps − This will prevent the screen from running and closing quickly when the program is launched from Visual Studio.

The last line Console.ReadKey() is for the VS.NET Users.

This statement causes the message "Hello, World!" to be displayed on the screen. The Main procedure specifies its behavior with the statementĬonsole.WriteLine("Hello World") WriteLine is a method of the Console class defined in the System namespace. The Main procedure states what the module or class will do when executed. The next line defines the Main procedure, which is the entry point for all VB.Net programs. The next line( 'This program) will be ignored by the compiler and it has been put to add additional comments in the program.

A procedure could be any of the following − Procedures contain the executable code, or in other words, they define the behavior of the class. VB.Net is completely object oriented, so every program must contain a module of a class that contains the data and procedures that your program uses.Ĭlasses or Modules generally would contain more than one procedure. The next line has a Module declaration, the module Module1. The first line of the program Imports System is used to include the System namespace in the program. Let us look various parts of the above program − The bottom line is that VB.Net is a language that helps to optimize platforms and companies worldwide, and helps developers create applications efficiently.When the above code is compiled and executed, it produces the following result − It can be utilized also for workflow applications, console applications, WCF services, silver light applications, windows control libraries, class libraries, net web services, and more. Whether it’s a desktop program or a web app, VB.Net has a wide use of applications. Unlike many languages that are geared towards “newbies”, VB.Net has the capability of creating extremely complex applications. Another great aspect of Virtual Basic is the fact that it is “basic”, and is not as complex of a language as its competition, which is great for those who want to learn on a novice level. It allows for more rapid utility development, and is used widely in GUI’s, or graphical user interface applications. One feature that is highly praised is the fact that it allows developers to write applications that interact with the user through the command line, for example. It is specifically designed for creating applications for the Windows platform, and it can also be used to develop websites, as well. Net, is a multi-paradigm and object-oriented programming language.
