Divelements Community
Customer discussion of all Divelements products

Cancel the Cancel Event

Latest post 11-16-2005 19:44 by Tim Dawson. 1 replies.
  • 11-16-2005 2:41

    • beng
    • Top 150 Contributor
    • Joined on 08-15-2005
    • Posts 10

    Cancel the Cancel Event

    Hi,
    I would like to display an 'Are you sure?' message box when the user clicks the Cancel button, however I can't see a way of stopping the Cancel event once the user has clicked the button. Is there a way of doing this?
    Thanks,
    Ben

  • 11-16-2005 19:44 In reply to

    Re: Cancel the Cancel Event

    In the current version you must inherit from Wizard and add your own logic in your overridden OnCancel method. The default behaviour is to close the form the wizard is on if it's being displayed modally.

    Ready for the next release, we have added the AutoCloseModalForm property to the wizard, which can be turned off (it's true by default). You can then decide whether or not to close your form in your Cancel event handler.

Page 1 of 1 (2 items) | RSS
Copyright © 2008 Divelements Limited
Powered by Community Server (Commercial Edition), by Telligent Systems