title: Close modal dialog from external thread - C#
body: <p>I am struggling to find a way to create the Forms functionality that I want using C#.</p>
  
  <p>Basically, I want to have a modal dialog box that has a specified timeout period.  It seems like this should be easy to do, but I can't seem to get it to work.</p>
  
  <p>Once I call <code>this.ShowDialog(parent)</code>, the program flow stops, and I have no way of closing the dialog without the user first clicking a button.</p>
  
  <p>I tried creating a new thread using the BackgroundWorker class, but I can't get it to close the dialog on a different thread.</p>
  
  <p>Am I missing something obvious here?</p>
  
  <p>Thanks for any insight you can provide.</p>