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 2013From Here
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:
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)
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.