I think Destroy Event is where you shoul put your code to capture closing of a project. You can try to use LASTKEY() to capture last key pressed but I'm not sure if it would be accurate in case a mouse is used.
>I have a project hook class that records various events to an activity table and shows a log screen of changes made to a particular project when the project is closed. I'm probably missing something obvious but how can I add an entry to the project activity table when someone hits the ESC key, clicks on the close button on the top right of the PM, or pressed ctrl-w? I want to show how they exit the PM. If they build the project I record if it was a success or failed but even after that I would like to show the date/time they exited the PM altogether.
>
>Any thoughts are greatly appreciated.....
>Greg Smith
--sb--