title: VB6 - Which event is invoked by the X button?
body: <p>I would like to activate a piece of code in my MDI form when the red X button at the upper right is clicked (I don't know what it is officially called) so that the program closes down nicely.</p>
  
  <p>What method in the Form is invoked when that happens?</p>