Displaying Windows Forms in the Designer
Within the Windows Forms Designer, you can view the forms within your project and their controls.
To view forms in the Windows Forms Designer
- In Solution Explorer, double-click the form. For details, see Introduction to Windows Forms.
If Solution Explorer is not visible, show it by pressing CTRL+ALT+L, or by selecting it from the View menu.
To view the code for a form
- In Solution Explorer, select the form and then click the View Code button.
Note Double-clicking a form or its controls will also switch to code view, but will add the default event handler for that control. For example, double-clicking a Button control will show the Code Editor and add theButton_Clickevent handler. For more information about event handlers, see Introduction to Event Handlers in Windows Forms.
Code and Text Editor | Introduction to Windows Forms | Creating Windows Forms | Choosing the Startup Form in Your Windows Application | Dialog Boxes in Windows Forms | What's New in Windows Forms and Controls