Articles in this section
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

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied