Menu Bar

VB.NET compilation

By using Visual Studio IDE:


  • Start Visual Studio.
  • On the menu bar, choose File>>New>>Project.
  • Choose Visual Basic from templates.
  • Choose console application.
  • Specify a name and location for your project using the Browse button, and then choose the OK button.
  • The new project appears in Solution Explorer.
  • Write code in the code editor.
  • Click on the run button or the F5 key to run the project. A command prompt window appears that contains the output.




By using Command Prompt:


  • Open a text  editor and write code.
  • Save the file as filename.vb.
  • Open the command prompt tool and go to the directory where you saved the file.
  • Type vbc filename.vb to compile your code.
  • If there are no errors in your code the command prompt will take you to the next line and would generate .exe file.
  • Type filename to execute your program.
  • Then it show output.