title: Windows Mobile 'OK' button
body: <p>I've discovered <em>how</em> to disable the "OK" button in my Windows Mobile application (by setting <code>ControlBox</code> to <em>false</em>).</p>
  
  <p>The problem I had was that it was possible for me to close my application by pressing this "OK" button, but the FormClosing, FormClosed events were not fired, and most worrying, the form's Dispose() method was not called either. This made it quite difficult to clean up things like threads and other resources.</p>
  
  <p>Now that I can force the user to use my own "Quit" button, those methods all get executed as I would expect. </p>
  
  <p><strong>Question</strong>: why does the "OK" button in a Windows Mobile application close the application while bypassing the methods I mentioned?</p>