Divelements Community
Customer discussion of all Divelements products
Sign in
|
Join
|
Help
Home
Forums
Forums
»
Windows Forms Controls
»
Wizard Framework
»
Wizard page always changes when enter key is pressed
Wizard page always changes when enter key is pressed
Previous
|
Next
Latest post 01-05-2008 9:49 by
Tim Dawson
. 1 replies.
09-21-2007 10:39
Andrew P
Joined on 09-21-2007
Posts
1
Wizard page always changes when enter key is pressed
Reply
|
Contact
I'd like to be able to have controls on a wizard page validate on an enter key press (for eample, when entering text into a text box), but the page itself always catches the enter key and goes to the next page. Is there any way to prevent this?
01-05-2008 9:49
In reply to
Tim Dawson
Joined on 08-15-2005
Posts
2,587
Re: Wizard page always changes when enter key is pressed
Reply
|
Contact
The correct way to validate a page is to handle its BeforeMoveNext event. This fires whether the user clicks next, presses enter or does anything else that results in the wizard moving on. You can cancel the move from within the handler for this event.
Page 1 of 1 (2 items) |
RSS
Copyright © 2008 Divelements Limited