title: How do I catch the event of exiting a Winforms application?
body: <p>If the user wants to exit the application by clicking on the exit icon or by ALT+F4, I'd like to make a dialog box questioning the user if he/she is really sure about exiting. </p>
  
  <p>How do I capture this event before the application is actually closed?</p>