Posted 19 years ago
by Kasper

Hi,
I have a set of wizardpages, and on one of them, I use the Validating event to check a single TextBox. Now, when the user tries to press Next, i present them with a textbox to instruct them to fill out the field, and set the Cancel property to true. This works fine. However, if the user presses the Back button instead, the event is fired 3 times, giving my user 3 messageboxes, and despite the Cancel still being set to false, the page is changed to the previous page anyway! Now, if the user tries to move forward to actually fill the textbox, he is not allowed to, which makes it really hard to escape the dialog hehe :). Am I doing something wrong here, or is there a bug in the Wizard control?
I have a set of wizardpages, and on one of them, I use the Validating event to check a single TextBox. Now, when the user tries to press Next, i present them with a textbox to instruct them to fill out the field, and set the Cancel property to true. This works fine. However, if the user presses the Back button instead, the event is fired 3 times, giving my user 3 messageboxes, and despite the Cancel still being set to false, the page is changed to the previous page anyway! Now, if the user tries to move forward to actually fill the textbox, he is not allowed to, which makes it really hard to escape the dialog hehe :). Am I doing something wrong here, or is there a bug in the Wizard control?