To change the location of a control at design time

1. Grab the middle of the control with the mouse and drag it to the appropriate location.

2. Set the Location property of the control in the Property Grid, either by setting the Location property directly or by expanding the Location property and modifying the values of X or Y as appropriate.

You can also reposition a group of controls graphically with the mouse. You must first select all of the controls that you want to move, either by outlining the appropriate controls with the mouse or by holding down the Ctrl key and clicking each control in turn. A group of selected controls is shown in Figure 2-2.

SU Forml

J| Button' ■ ■

■ ■ ■

n

Ç

Button3

i)

h_I

Figure 2-2 A group of selected controls in the Designer

Figure 2-2 A group of selected controls in the Designer

Once the group of controls is selected, you can move the group by grabbing the middle of one of the controls and moving it with the mouse.

0 0

Post a comment