Is there a way to overload the close button that is on the top right corner or most windows programs. I have an application that uses the system tray. I want to make it so that when the user clicks on the close button it doesn't really close the program. I want it to just minimize or hide it. but i still want it running until the user right clicks on the system tray item and selects exit.