title: Closing form from another thread
body: <p>I have got this code which runs an <code>.exe</code></p>
  
  <pre><code>string openEXE = @"C:\Users\marek\Documents\Visual Studio 2012\Projects\tours\tours\bin\Debug\netpokl.exe";
                   Process b = Process.Start(openEXE);
                   b.EnableRaisingEvents = true;
                   b.Exited += (netpokl_Closed);
  </code></pre>
  
  <p>And when it closes it calls method netpokl_Closed. The issue is when I <code>insert into netpokl_Closed command</code> - <code>this.Close()</code> this exception rises: <code>Cross-thread operation not valid: Control accessed from a thread other than the thread it was created on</code></p>
  
  <p>How can I fix it ? Thank you for your time and answers.</p>