Articles → .NET → Introduction To Windows Forms Using Visual Studio

Introduction To Windows Forms Using Visual Studio






Software Requirement





Prerequisite Knowledge





What Is A Windows Application?







What Is Windows Form?





What Is Visual Studio?




Picture showing the visual studio IDE for creating applications



How To Create Windows-Based Project In Visual Studio?




  1. Launch Microsoft Visual Studio.
  2. Click the File menu.
  3. From the menu, click New Project…
  4. A pop-up window appears.
  5. Picture showing the New Project menu for creating a new project in visual studio







Different Sections Of Visual Studio


Picture showing the different sections of the visual studio IDE




  1. Toolbox → Contains various controls that you can drag and drop onto the form.
  2. Form → A form is a single functional unit of an application. An application can consist of multiple forms.
  3. Solution explorer → Displays all the projects in the current solution and the files and folders contained within each project.
  4. Property window → Displays the properties and settings of the selected form or control. In the figure above, the Properties Window displays the properties of the form.

WYSIWYG View





Design View




Picture showing the design view of the windows form in visual studio



Adding Controls On Form




Picture showing the different categories of controls in the toolbar




  1. Left click the control.
  2. Press and hold the left mouse button.
  3. Move the cursor over the form.
  4. Release the mouse button to complete the action.
  5. Picture showing how to drag and drop the tool in visual studio



Run The Program




Picture showing the run icon in the visual studio



Output


Picture showing your first windows forms program using visual studio



Posted By  -  Karan Gupta
 
Posted On  -  Thursday, February 2, 2012

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250