Hi
My app has a main window and has the usual file->exit menu option.
But the user can also close the main window by using the close button (the cross in top right hand corner) - how can I catch this event?

TIA

Graham