title: FormClosing and FormClosed events do not work
body: <p>I'm developing a <code>C#</code> app
  And i need do some validations before the user close the form.</p>
  
  <p>I tried to use the <code>FormClosing</code> event, but it didn't work,
  later I used the <code>FormClosed</code> event, but the same.</p>
  
  <p>The problem is, when I click in the "close button" (on the top of the form) it doesn't do anything but i have the events in form properties and everything.</p>
  
  <p><img src="https://i.stack.imgur.com/z0eFd.png" alt="enter image description here">
  <img src="https://i.stack.imgur.com/jlKeg.png" alt="enter image description here"></p>
  
  <p>this is my code:</p>
  
  <pre><code>    private void Inicio_FormClosing_1(object sender, FormClosingEventArgs e)
      {
      //things I have to do
      //...
      //...
  
      if(bandera==true)
      Application.Exit();
  
      }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>    private void Inicio_FormClosed_1(object sender, FormClosingEventArgs e)
      {
      //things I have to do
      //...
      //...
  
      if(bandera==true)
      Application.Exit();
  
      }
  </code></pre>
  
  <p><strong>any idea?</strong></p>
  
  <p>Thank you</p>