This project has moved. For the latest updates, please go here.

Any way to disable the 'Back' button?

Aug 7, 2011 at 1:12 PM

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

 

Coordinator
Aug 8, 2011 at 12:34 AM

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.


Aug 8, 2011 at 7:47 AM
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