Microsoft Visual Basic Programming


  1. Check the Microsoft Visual Basic Help Pages.

  2. Download and Install Visual Studio Community.
  3. Visual Studio Community is a free, fully-featured, and extensible IDE (Integrated Development Environment) for creating modern applications for Windows, Android, and iOS, as well as web applications and cloud services. Visual Studio Community is free for individual developers, open source projects, academic research, education, and small professional teams.

  4. Start the Visual Studio Community.
  5. Start the Visual Studio Community by selecting the following Windows options:
       Start ⇒ All Programs
             ⇒ Visual Studio 2015

  6. Create a New Project.
  7. Click the hyperlink “New Project...” in the section “Start”



    Visual Studio IDE (Integrated Development Environment) will be displayed as follows:



  8. Create the User Interface.
  9. Visual Studio provides a WYSIWYG (What You See Is What You Get), drag-and-drop user interface. Create a user interface such as


    by using the panes of “All Windows Forms” of “Toolbox” and “Properties.” This user interface includes


    For how to create a Visual Studio user interface, check Creating the Visual Look of Your Program: Introduction to Windows Forms.

  10. Implement the Project.
  11. Write the events’ procedures, for example, by doubly clicking the button “Calculate:”


    C:\VB-workspace\WindowsApplication2\WindowsApplication2\Form1.vb
     Public Class Form1
       Dim  Sum As Integer
       Private Sub Command1_Click( sender As Object, e As EventArgs ) Handles Command1.Click
         Sum = Val( Text1.Text ) + Val( Text2.Text )
         Text3.Text = Sum
       End Sub
     End Class

    This program is to display the sum of TextBoxes Text1 and Text2, whose values are entered by users, at the TextBox Text3. For how to write a Visual Basic program, check Introduction to the Visual Basic Programming Language.

  12. Build the Project.
  13. Build the project by selecting the following VS options:
       Build ⇒ Build Solution

  14. Execute the Project.
  15. Execute the project by selecting the following VS options:
       Debug ⇒ Start Without Debugging
    One example of execution results is as follows: