Changes

Jump to: navigation, search
Adding Components to the Windows Form
== Adding Components to the Windows Form ==
 
At this point we have a new Visual Studio project and are ready to begin the process of adding user interface components to our application. At the moment our Windows Form (entitled Form1) is empty. The next step is to start dragging components from the Toolbox to the Form.
 
To access the Toolbox click on the ''Toolbox'' tab located along the left hand edge of the main Visual Studio window. This will display the Toolbox which contains a number of different categories of components available for addition to the Form.
 
If the ''All Common Components'' category is currently folded click on the small + sign to unfold the list of components. With the components visible drag and drop two Button components and two TextBox components onto the Form canvas such that the Form appears as shown in the following figure.
 
 
[[Image:visual_studio_c_sharp_simple.jpg|A sample Windows Form with Buttons and TextFields]]

Navigation menu