title: Calling ShowDialog in BackgroundWorker
body: <p>I have a WinForms application in which my background worker is doing a sync task, adding new files, removing old ones etc.</p>
  
  <p>In my background worker code I want to show a custom form to user telling him what will be deleted and what will be added if he continues, with YES/NO buttons to get his feedback.</p>
  
  <p>I was wondering if it is ok to do something like this in background worker's doWork method?
  If not, how should I do it?</p>
  
  <p>Please advise..</p>
  
  <pre><code>private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
  {
     MyForm f = new MyForm();
     f.FilesToAddDelete(..);
     DialogResult result = f.ShowDialog();
     if(No...)
     return;
     else
     //keep working...
  }
  </code></pre>