We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Howto cancel finish-button in WizardControl

Thread ID:





44805 Jun 3,2006 11:45 AM Jun 5,2006 02:43 AM Windows Forms 2
Tags: Tools
Christian Lützenkirchen
Asked On June 3, 2006 11:45 AM

Hi, I am using a Syncfusion.Windows.Forms.Tools.WizardControl from Library Version When the user presses the finish-button I want to do some action. This action could fail. Is there a way to cancel the finish operation? The event gets a System.EventArgs with no Cancel-Attribute. Same problem can occur with next and back-buttons. Currently I reset the SelectedWizardPage to the previous page in the Load-event of the next page. This is not possible for the finish-button. Regards, Christian

Christian Lützenkirchen
Replied On June 3, 2006 12:54 PM

Hi, I just must not set DialogResult ...... First think, then write .... Regards Christian

Administrator [Syncfusion]
Replied On June 5, 2006 02:43 AM

Hi Christian, Thanks for using Essential tools. You can handle the BeforeFinish event in Wizard Control to cancel the action when clicking on the Navigation button(Finish). Here is the code snippet: private void wizardControl1_BeforeFinish(object sender, System.ComponentModel.CancelEventArgs e) { //Cancelling the Action when Finish button is clicked e.Cancel = true; } I have attached a sample for your reference: Wizard.zip Please take a look and let me know if this helps you. Best Regards, Seetha


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.