Professional Documents
Culture Documents
Getting Started With Visual Basic
Getting Started With Visual Basic
2. Select Visual Basic on the left and then Console Application on the right.
3. Specify the name of your project and enter the location in which to create the project. The project directory will be
created automatically by Visual Studio.
The next few steps discuss these different files and how to compile the project.
back to top
Module Module1
Sub Main()
End Sub
End Module
3. Notice that as you type, Visual Studio will help you with the names of classes and functions, since the .NET
Framework publishes the type information.
2. Errors and messages from the VB compiler will be displayed in the Output window. If there were no errors, you can
run the Hello World application by clicking Start without Debugging under the Debug menu.
Program Output
This is a screenshot of the output from the Hello World sample application when run from within the Visual Studio environment.
Control passes to the Main() function after the program has been loaded. That is why we insert the call to WriteLine() in the
procedure.
back to top
©2001 Microsoft Corporation. All rights reserved. Terms of Use | Privacy Statement | Accessibility