The method of modifying a control with the mouse is intuitive and allows you to adjust the control to exactly the desired size. You adjust the size of a control with the mouse by first selecting the control, usually by clicking it in the Designer. This causes the control to be outlined by white squares and a dotted line as shown in Figure 2-1.
Once the control has been selected, you can resize it in the Designer by grabbing an edge or a corner and dragging it with the mouse.
You can also resize a control in the Properties window by modifying the Size property. The Size property has two components, Width and Height, which represent the width and height of the control in pixels. You can modify these individual components by expanding the Size property and typing a new value for one of the components in the Property Grid, or you can modify the Size property directly. The control is resized accordingly.
You can choose one of two ways to resize a control.
Was this article helpful?