title: Show message before closing form
body: <p>I have this Window Form and what i need is that when i close the form by pressing [x] in the window, i need to show a message.</p>
  
  <p>This is not working:
  Any idea why?</p>
  
  <pre><code>private void ControlCom_Closing(object sender, FormClosingEventArgs e)
  { 
          MessageBox.Show("test");    
  }
  </code></pre>
  
  <p>I just need to display the message on button x click. But this doesn't display the message box.</p>
  
  <p>Shuld i add anything else there or something? I read there is a closereason but mybe it's not the case.</p>