Adding Labels

This exercise describes how to add Labels to a form:

  1. Click and drag a Label from the Toolbox to the Design Sheet.
  2. The cursor changes to a cross and you can draw the label on the design.

    Resize

    Click and drag the corners of the control to resize the control.

    Reposition

    Click and drag the handle (top-left) to reposition the control.

  1. To move a control (from outside a container or from the Toolbox) into a container, click and drag the control over the container with the mouse. You will be prompted to press ALT to drop the control into the container:
  2. (If you do not press and hold down the ALT as you release the mouse the control is simply placed over but not "inside" the container.)

  3. Note that you can use the mouse to move controls in and out or between container controls in the Form Explorer.

  4. Alternatively, you can click and drag a control on the Design Sheet, which is outside the container, and drop it onto the Form Explorer inside the container tree.

    Note that you cannot drag a control directly from the Toolbox to the Form Explorer.

  1. Enter the text to be displayed in the label in the Content data property in the Properties pane.

  2. Save your changes and click Run to run the form: