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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Howto cancel finish-button in WizardControl

Thread ID:

Created:

Updated:

Platform:

Replies:

44805 Jun 3,2006 03:45 PM UTC Jun 5,2006 06:43 AM UTC WinForms 2
loading
Tags: Tools
Christian Lützenkirchen
Asked On June 3, 2006 03:45 PM UTC

Hi, I am using a Syncfusion.Windows.Forms.Tools.WizardControl from Library Version 4.2.0.37. 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 04:54 PM UTC

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

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

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

CONFIRMATION

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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon 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.Close Icon

;