Setting Up the Visibility Flag of a Text Control

You can set up the visibility flag of a text control at runtime based on the value of a checkbox control.

Procedure

  1. Add a checkbox (Checkbox1) and a text control (Text Control1) into a vertical pane within the form.
  2. Go to the General properties for the checkbox control.

    Create a binding for the Value attribute of the checkbox and set it to the Visible property of the text control. The direction of this binding is from the check box Value to the Visible property of the text control.

  3. When you load the form, the check box is in cleared condition and Text Control1 is invisible. If you select the checkbox control, Text Control1 becomes visible in the form.