Adding Controls to a Form

   

You can add controls to your form in design mode by selecting them from the Toolbox.

To add a control

Note   When a control is placed onto a form at design time, only the class name for the control is added. Code for the control is not generated until you close the form. If you modify an existing control in the Toolbox, you must close and reopen the form or reload the project so that the form picks up the updated class files for the control.

To resize a control

Note   You can also use SHIFT+ arrow keys to size the control.

To add event handler templates to a control

Note   You can also add event handlers through the events view in the Properties window.