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.

Wizard Control with Enter pressed

Thread ID:

Created:

Updated:

Platform:

Replies:

19720 Oct 1,2004 12:45 PM Oct 5,2004 08:41 AM Windows Forms 2
loading
Tags: Tools
Administrator [Syncfusion]
Asked On October 1, 2004 12:45 PM

I have a control on my wizard page that I would like to act like pressing the next button when enter is pressed. I have an onkeydown event to detect when enter is pressed but I can''t figure out how to have the wizard move to the next page. I found the WizardControl NextPage function but it skips the page validation. I found the WizardControlPage RaiseNextClick but it doesn''t seem to do anything. How do I programatically cause the "next" to be generated?

Administrator [Syncfusion]
Replied On October 5, 2004 06:06 AM

Hi, Sorry for the delay in responding. I am looking into this issue and will update at the earliest. Thank you for your patience. Best regards, Stephen. >I have a control on my wizard page that I would like to act like pressing the next button when enter is pressed. I have an onkeydown event to detect when enter is pressed but I can''t figure out how to have the wizard move to the next page. I found the WizardControl NextPage function but it skips the page validation. I found the WizardControlPage RaiseNextClick but it doesn''t seem to do anything. How do I programatically cause the "next" to be generated?

Administrator [Syncfusion]
Replied On October 5, 2004 08:41 AM

Hi, 1) As you have pointed out the WizardControl NextPage function skips the validation and the RaiseNextClick raises the NextClick event on the page but it does not perform Validation nor move the selected page to the next page. We will investigate into this behavior. 2) As a workaround , could you please try this workaround if(e.KeyData == Keys.Enter) { CancelEventArgs pageOneCancelArgs = new CancelEventArgs(); this.wizardControlPage1.RaiseValidatePage(pageOneCancelArgs); if(pageOneCancelArgs.Cancel != true) { this.wizardControl1.NextPage(); } } Here is the sample. F19720WizardEnterPressed_8269.zip Please let me know if you have any questions. Sorry for the inconvenience. Thanks. Best regards, Stephen. >Hi, > >Sorry for the delay in responding. I am looking into this issue and will update at the earliest. Thank you for your patience. > >Best regards, > >Stephen. > >>I have a control on my wizard page that I would like to act like pressing the next button when enter is pressed. I have an onkeydown event to detect when enter is pressed but I can''t figure out how to have the wizard move to the next page. I found the WizardControl NextPage function but it skips the page validation. I found the WizardControlPage RaiseNextClick but it doesn''t seem to do anything. How do I programatically cause the "next" to be generated?

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.

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.

;