How to cancel the action on finish button in WinForms wizard control?
You can handle the BeforeFinish event in WinForms Wizard Control to cancel the action when clicking on the finish button.
Here is the code snippet:
C#
private void wizardControl1_BeforeFinish(object sender, System.ComponentModel.CancelEventArgs e)
{
//Cancelling the Action when Finish button is clicked
e.Cancel = true;
}
Private Sub wizardControl1_BeforeFinish(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs)
'Cancelling the Action when Finish button is clicked
e.Cancel = True
End Sub
Conclusion
I hope you enjoyed learning about how to cancel the action on the finish button in WinForms Wizard control.
You can refer to WinForms Wizard control feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our WinForms Wizard control example to understand how to create and manipulate data.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!