How to: Compile and Run a Project in Visual Basic

The Visual Studio Integrated Development Environment (IDE) makes it easy to compile a project and run the resulting application.

You can use the debugger built into the IDE to debug your project as it runs. For more information about debugging, see Debugging Your Visual Basic Application and Edit and Continue (Visual Basic).

Note

The dialog boxes and menu commands you see might differ from those described in Help, depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Visual Studio Settings.

To compile and run the current project

  • Press F5 while you are in the Visual Studio Integrated Development Environment (IDE).

    The IDE compiles the project and runs the application within the Visual Studio debugger.

To compile and run the current project from the menu

  • From the Debug menu of the Visual Studio IDE, choose Start Debugging.

    The IDE compiles the project and runs the application within the Visual Studio debugger.

To compile and run the current project without debugging

  • Press CTRL+F5 in the Visual Studio IDE.

    The IDE compiles the project and runs the application.

For information about compiling and running Visual Basic code using the command-line compiler, see Building from the Command Line (Visual Basic).

See Also

Tasks

How to: Start Execution

Concepts

Debugging Your Visual Basic Application

Other Resources

Building from the Command Line (Visual Basic)

Edit and Continue (Visual Basic)