Category / Section
How do I cancel the action when clicking on the finish button in the wizard control?
3 mins read
You can handle the BeforeFinish event in 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;
}
VB
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