Forms Designer - Working with Push buttons


To add a push button to the current form click on the form0033.gif icon on the controls palette.

Push buttons are simple controls allowing the user to click on the button to perform an operation. By default, forms in the forms designer have three push buttons defined, these are OK, Cancel and Help. In most cases all forms should have at least an OK and a Cancel button to allow the form to be exited when required.

The caption text for a push button is set with the Text$ property. To include an accelerator key in the caption text simply insert an Ampersand before the required character. See Working with Accelerators for more information.

Other useful push button control properties:

Enabled
Visible

Useful push button event handlers

Click()