title: Preventing event from one from to another
body: <p>I have a form that pops up in my application. When the form is in process of closing, the user can click on the form and the event is handled by the main application when the form is finally closed. </p>
  
  <p>Is there a way to prevent any events from being recieved by the main form unless the pop-up form is closed and no longer visible?</p>
  
  <pre><code>Cursor.Current = Cursors.WaitCursor;
  ... Do some work...
  RbForm form = new RbForm(Steps);
  form.ShowDialog();
  form.Dispose();
  ... Do some more work.... [**]
  Cursor.Current = Cursors.Default;
  </code></pre>
  
  <p>[**] Clicking on the form here will trigger an event on the main application window once the form is closed.</p>
  
  <p>Thanks.</p>