title: How to prevent user interaction with invisible forms?
body: <p>In my application there appeared a following problem: certain dialogue forms can be interacted with before they are drawn.</p>
  
  <p>The code goes like:</p>
  
  <pre><code>void FunctionCalledFromButtonPressHandler()
  {
      var f = new MyDialog();
      if (f.ShowDialog() == DialogResult.OK)
      {
      //do things
      }
  }
  </code></pre>
  
  <p>The buttons on the starting form and dialog form (one that loses it) are over each other on the touchscreen. If the plac is clicked over twice, there is a pause corresponding to the load of dialog form, and then, without it being shown, wotk in starting form is continued/</p>
  
  <p>How should i go about preventing such sort of behaviour (that is, apart from removing the delay on the loading of dialog)?</p>