title: OnClosing event is not being called when Close, X, button is pressed. Windows Mobile
body: <p>I am new to Windows Mobile and created an app that needs to do some clean up when a Form is closed. When I click on the Close in the ControlBox it does not call the OnClosing event. This works fine in regular windows but is not working with my Windows Mobile device.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>protected override void OnClosing(System.ComponentModel.CancelEventArgs e)
  {
  ...
  }
  </code></pre>
  
  <p>I have also tried this with no luck:</p>
  
  <pre><code>Form.Closing += new System.ComponentModel.CancelEventHandler(WindBaseForm_Closing);
  </code></pre>
  
  <p>I would appreciate any help you can give.</p>