title: Is there a way to have the close window button (X) call a method before actually closing the window?
body: <p>In a windows form project in C#/.net/Visual Studio 2010, if someone hits the close window button, I want to disable some other things in the program as a consequence.  Is there a method call for hitting "X" that I can extend?</p>