Configure a button to close a dialog box

To hide a dialog box at runtime, another object must call a specific method.

Prerequisites

Create a dialog box type. See Create a graphic object type.

To configure a button to close a dialog box
  1. Create a button object as a child of the dialog box type.

    For more information, see Create a graphic object from a type.

  2. In Events, next to MouseClick event, select Add and select the Close method.