Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

WizardControl.FinishClick Event

Fires after the Finish button has been clicked.

Namespace: DevExpress.XtraWizard

Assembly: DevExpress.XtraWizard.v24.2.dll

NuGet Package: DevExpress.Win

#Declaration

public event CancelEventHandler FinishClick

#Event Data

The FinishClick event's data class is CancelEventArgs. The following properties provide information specific to this event:

Property Description
Cancel Gets or sets a value indicating whether the event should be canceled.

#Remarks

By default, clicking the Finish button has no effect, because no action is defined. Once clicked, the FinishClick event is raised. You should handle this event to perform the required task(s).

private void wizardControl1_FinishClick(object sender, EventArgs e) {
    finish = true;
    this.Close();
}

private void frmMain_FormClosing(object sender, FormClosingEventArgs e) {
    if(finish) return;
    if(XtraMessageBox.Show(this, "Do you want to exit the XtraWizard feature tour?",
            "XtraWizard", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
        e.Cancel = true;
}

If the XtraWizard control operates in modal mode, clicking the Finish button automatically closes the Wizard window. To prevent the window from being closed, set the event parameter’s Cancel property to true. If the XtraWizard control doesn’t operate in modal mode, setting the Cancel property has no effect.

See Also