This project has moved and is read-only. For the latest updates, please go here.

Commit event not fired when Finish is clicked

Mar 12, 2011 at 12:57 PM

Commit event is not fired when Finish is clicked. Is this by design or a bug?

Mar 13, 2011 at 1:24 AM

Well, technically I could say it is either. I think it does make sense to be consistent on every page and fire the Commit event. However, I'm not sure how to handle the condition where Commit fails when its the last page. What are your thoughts? Would you share your use case?

Mar 13, 2011 at 10:24 PM

Thank you for your fast reply.

Well, I have a wizard to help the user to generate a report. When the user clicks the Finish button, it would generate the report. I tried to use the Commit event of the page and did not know about the Finished event of the control at the time. Now, the program generates the report during the Finished event.

My suggestion is to trigger the Commit event on the last page. If the Cancel property is set to true, then don't trigger the Finished event and don't close the form. Otherwise, trigger the Finished event and close the form.

Mar 14, 2011 at 6:59 PM

This has been implemented in source code release 56509 and today's 1.0 download update.