Hi, How can I handle the event generated when I close the window with alt+F4? The app uses threads and I want to kill the threads when I close the window and do other cleaning jobs. Thank you. Octavian