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

StepWizardControl not abort Cancelling event #87

Closed AndGutierrez closed 4 years ago

AndGutierrez commented 4 years ago

Hi,

I'm using StepWizardControl container with three pages and I'd like to check when the user click on the CancelButton to close the form or not.

For this, I'm usign the Cancelling event and the param CancelEventArgs setting :

e.Cancel = true;

But It doesn't works and close the form.

I think that it's a bug.

dahall commented 4 years ago

This is normal behavior. See https://stackoverflow.com/questions/1769951/c-sharp-cancelbutton-closes-dialog. It suggests using the Closing event instead.