Bewerken

Share via


TaskDialogButton.Cancel Property

Definition

Gets a standard TaskDialogButton instance representing the Cancel button.

public:
 static property System::Windows::Forms::TaskDialogButton ^ Cancel { System::Windows::Forms::TaskDialogButton ^ get(); };
public static System.Windows.Forms.TaskDialogButton Cancel { get; }
static member Cancel : System.Windows.Forms.TaskDialogButton
Public Shared ReadOnly Property Cancel As TaskDialogButton

Property Value

Remarks

Note: Adding a Cancel button will automatically add a close button to the task dialog's title bar and will allow to close the dialog by pressing ESC or Alt+F4 (just as if you enabled AllowCancel).

Applies to