Specifying Which Controls to Move

Hopefully this example shows why not all Control objects can be move handles.

Below, we have rendered a Label and a TextBox. We want the textbox to be moveable, but if we make the textbox a "move handle" to move itself, the user will no longer be able to click "into" the textbox to enter in data. Therefore, we specify the label to be the "move handle", and we add the label (itself) and the textbox as targets to be moved by the label.

This is done by making two calls to the label's AddControlToMove method. The first call is made to add the label (itself), and the second call is made to add the textbox.

Note how you will move both controls when you drag the label around, and also note how you can still click "into" the textbox to enter in data.

Please Enter your Name