title: Thread and GUI with invoke issue
body: <p>I have a method for exporting data. I do it via a new thread so that the GUI remains responsive. At the end it opens a <code>SaveFileDialog</code> which is not working without an invoke. With the below modification it's working but again, the GUI is unresponsive. Any clue?</p>
  
  <pre><code>private void button1_Click(object sender, EventArgs e)
  {
     Thread thread = new Thread(method);
     thread.Start();
  }
  public void medhod()
  {
     if (this.InvokeRequired)
     {
         Invoke(new MethodInvoker(delegate() { method(); }));
     }
     else
     {
         //Code
         //SaveFileDialog
     }
  }
  </code></pre>
  
  <p>*Edit: Another approach would be to leave the export code in the new thread, and put the <code>SaveFileDialog</code> back to the original thread. All I need is 1st thread to "pause" and then continue once the 2nd thread is over. Ideas are welcome.</p>