- Jun 3, 2004
- Programming Experience
Hi, is there a way that i can run some code before the application exits? So that when the last form is closed, or the exit button is clicked, it runs a short piece of code before closing itself? The problem is that there is no way to know what form will be that last open, so can i put some code into a module or something?