dahall / AeroWizard

Library for easy creation of custom and Aero Wizards. Aero Wizard strictly follows Microsoft guidelines and uses Visual Styles to get visual theming.
MIT License
112 stars 32 forks source link

Any way to disable the 'Back' button? #38

Closed dahall closed 5 years ago

dahall commented 5 years ago

Good day!

I have recently been using this wonderful library, and I just wondered if there is an easy way to do this. I am not sure whether I am just missing this feature, or if it is not easy to implement. I know that people are going to say that you should never disable the 'Back' button, and ideally, I would like to be able to enable and disable it for specific pages, just as I can with "AllowNext" and "AllowCancel", and I do have good reason to want to disable this button.

Alternatively, is there a way to possibly cancel a 'Back' button press?

My greatest gratitude in advance to anybody who reads this,

Richard

Originally posted: 2011-08-07T07:12:01

dahall commented 5 years ago

There is not an AllowBack property for a WizardPage as this is generally controlled by whether or not the current page was reached from a previous page. However, you can handle the WizardPage.Rollback event and set the WizardPageConfirmEventArgs.Cancel property to 'true' to disallow a back button click.



Originally posted: 2011-08-07T18:34:00

dahall commented 5 years ago

dahall wrote:

There is not an AllowBack property for a WizardPage as this is generally controlled by whether or not the current page was reached from a previous page. However, you can handle the WizardPage.Rollback event and set the WizardPageConfirmEventArgs.Cancel property to 'true' to disallow a back button click.



I hadn't noticed that Event. Thank you so, so much for your time, and incredibly valuable response. It is very greatly appreciated :)

Thanks again,

Richard

Originally posted: 2011-08-08T01:47:20