title: Windows.Forms.MessageBox in WPF Application
body: <p>I´m working on a WPF-Application. In it´s file-based I/O-Functions I´m catching Exceptions that are thrown when a file is used by another process. In that case a Messagebox should appear with retry/cancel-options. As far as I figured out, there is no such Messagebox in WPF (Windows.MessageBox), so I´m trying to use a Windows.Forms.Messagebox, but it behaves strangely:</p>
  
  <p>When I call it once (with just OK-Button-Option just for testing)...</p>
  
  <pre><code>System.Windows.Forms.MessageBox.Show("blablabla", "Test", System.Windows.Forms.MessageBoxButtons.OK);
  </code></pre>
  
  <p>...it appears for a millisecond, then disappears.</p>
  
  <p>When I call it twice...</p>
  
  <pre><code>System.Windows.Forms.MessageBox.Show("blablabla", "Test", System.Windows.Forms.MessageBoxButtons.OK);
  System.Windows.Forms.MessageBox.Show("blablabla", "Test", System.Windows.Forms.MessageBoxButtons.OK);
  </code></pre>
  
  <p>...the second Messagebox stays visible as expected until you click "Ok".</p>
  
  <p>I already tried to use "null" as a parameter for the IWin32Window, but it had no effect. Also I tried to pass the WPF-Mainwindow as a parameter but (of course) it´s the wrong type.</p>
  
  <p>Any suggestions?</p>