Adding command buttons to a form

You can add command buttons to a form. Command buttons are used to carry out an action. For example, you can add a button that prints the current form.

StepsTo add a button to a form:

  1. Click the Button button in the Controls drop-down toolbar, or select Insert>CommandButton from the menu bar.

  2. Click where you want to place the command button.

    A button with the text none displays. The text none also displays in the text box in the StyleBar and on the General page of the Properties view.

  3. Type the new text.

    The sample shows a gray rectangle with a button positioned at lower left and  labeled My Button, and the General tab page of the Properties dialog box at right. The dialog box has a text box with the entry "My button," a selected check box labeled Visible, and cleared check boxes for Default and Cancel.
  4. (Optional) Specify the command button as a default or cancel button.

    For more information, see “Specifying default and cancel buttons”.