ARTICLE

How to create a windows forms application in VB.NET

Posted by Rohatash Kumar Articles | Visual Basic 2010 October 07, 2010
This article shows how to create a windows forms application in VB.NET.
 
Reader Level:

In this article we will learn how to create window application in VB.NET 2010.

creating the window form by selecting

start->all programs->Visual studio 2010->new project->Visual basic->windows forms application option

w4.gif

Give a project name and location and click on OK.

Toolbox to add control on the form.

w2.gif

Drag and drop control to the form from toolbox.

w5.gif

Click on the button and press F4 to open the property window.

w6.gif

From the property window we can change the property of button control.

Now, double click on the button and add the following code.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        TextBox1.Text = "rohatash"

End Sub

Now press Ctrl+F5 to execute the application.

Now executable window will open.

Now click on Button this shows the below output window.

w7.gif

Login to add your contents and source code to this article
share this article :
post comment
 
Nevron Diagram
Become a Sponsor
PREMIUM SPONSORS
  • ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications.
    Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites - Click Here!
Nevron Diagram
Become a Sponsor