I need to run a clean up procedure when the user closes the application.
I have created a toolbar control, which allows the user to close the application, and have the procedure tied up to this. This works fine.
But I have been unable to make it run if the user chooses to close the application by clicking the 'Close' button in the upper right corner.
My question is if there is an 'application_close' event (or similar) which I can use to run my clean up code, or if I (as an alternatively solution) can disable the 'Close' button?
/Soren
I have created a toolbar control, which allows the user to close the application, and have the procedure tied up to this. This works fine.
But I have been unable to make it run if the user chooses to close the application by clicking the 'Close' button in the upper right corner.
My question is if there is an 'application_close' event (or similar) which I can use to run my clean up code, or if I (as an alternatively solution) can disable the 'Close' button?
/Soren