WizardForm.IsCancellable Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
When overridden in a derived class, gets a value indicating whether the wizard can be canceled.
protected:
virtual property bool IsCancellable { bool get(); };
protected virtual bool IsCancellable { get; }
member this.IsCancellable : bool
Protected Overridable ReadOnly Property IsCancellable As Boolean
Property Value
true
if the user can cancel the wizard; otherwise, false
.
Examples
The following example demonstrates the IsCancellable property. This example returns true
, which enables the Cancel button on the wizard form.
// Customize the IsCancellable property. Default is true;
protected override bool IsCancellable
{
get
{
return true;
}
}
// Customize the IsCancellable property. Default is true;
protected override bool IsCancellable
{
get
{
return true;
}
}
Remarks
This property enables you to create a custom IsCancellable property. If you need to ensure that the wizard is never canceled, set the IsCancellable property to false
.