Share via


WizardForm.CompleteWizard Method

Definition

When overridden in a derived class, enables the user to close the wizard by clicking the Finish button.

protected:
 abstract void CompleteWizard();
protected abstract void CompleteWizard ();
abstract member CompleteWizard : unit -> unit
Protected MustOverride Sub CompleteWizard ()

Examples

The following example demonstrates the CompleteWizard method. In this example, the CompleteWizard method closes the wizard form. This code example is part of a larger example provided for the WizardForm class.

// Customize the abstract CompleteWizard();
protected override void CompleteWizard()
{
    Close();
}
// Customize the abstract CompleteWizard();
protected override void CompleteWizard()
{
    Close();
}

Remarks

This custom method enables you to verify that all required data in all the pages of the wizard is complete before the wizard closes. This method enables you to create a custom CompleteWizard method.

Applies to