Visual Studio: Your first windows forms application.

September 2016

In this short tip-alike How-To, we're going to create the very basic Win-Forms-App, test it, and compile it.
the purpose of this, is to give a general idea on the basic principles on creating such apps.
For the purpose of this tutorial we're using Microsoft Visual Studio 2013.
You can download the (free for individual developers version)
Visual Studio Community 2013 From Here

Designing the new Forms Application:

  • Start by creating the new project:
    • Go to File -> New -> Project

  • Choose a name for your application & location for the solution's files, hit OK.

  • The initial project should look like this:

simple basic form
  • Go to the menu bar and choose: View -> ToolBox this window contains the controls to add to the form
  • From the ToolBox drag controls to the form as shown below
  • Now Right click in an empty space on the form and go to the properties window, set the following properties as follow:

Coding Controls:

  • Double click on Button1 to go to the Code area:

  • Enter the following Code:

Public Class Form1
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Dim TxT As String = TextBox1.Text, CHK As String = CheckBox1.CheckState.ToString
        MessageBox.Show("Text in the Text Box is: " + TxT + " " + vbCrLf + "CheckBox State is: " + CHK)
    End Sub
End Class

    • to preview your application hit F5 and test it:

Publishing your application:

  • Go to View -> Solution Explorer
  • Right click on your application and choose Publish:

  • Follow the wizard, Congratulations you have built your first App using Visual Studio.

Related :

This document entitled « Visual Studio: Your first windows forms application. » from CCM ( is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.