Cancel Property
Specifies whether the specified control is the Cancel button in a picture. This control can be the pushbutton control or any control that behaves like a button.
Syntax
object.Cancel [= Boolean]
Properties
The Cancel property syntax has these parts:
Part |
Description |
object |
An object expression that evaluates to an object in the Applies To list. |
Boolean |
Whether the control is the cancel button. |
Settings
The settings for Boolean are:
Value |
Description |
True |
This control is the Cancel button of the picture in the Run-time environment. |
False |
The control is not a cancel button for the picture. (Default) |
Remarks
Only one control in a picture can be the Cancel button. When the Cancel property is set to True for one control, it is automatically set to False for all other controls in the picture. When a control's Cancel property setting is True and the picture is the active picture, the user can choose the control by clicking it, pressing the ESC key, or pressing ENTER when the button has the focus.
The Cancel property of a control can be set to True only if the control is a pushbutton control or any control that behaves like a button i.e., marked with OLEMISC_ACTSLIKEBUTTON flag.