Returns or sets whether the control receives the ESC key when pressed, when the parent form has the focus.
Object.Cancel [ = bCancel ]
The Cancel property syntax has the following parts:
|
Name |
Type |
Description |
|
Object |
ASwitch |
ASwitch control |
|
bCancel |
Bool |
A boolean expression that specifies whether the control receives the ESC key when pressed, when the parent form has the focus. |
bCancel can be one of the following:
|
Value |
Description |
|
True * |
When the parent form has the focus, the control receives the ESC key when pressed. |
|
False |
When the parent form has the focus, the control does not receive the ESC key when pressed. |
The following statement changes the Switch so it will not receive the ESC key, when the parent form has the focus:
sw1.Cancel=False