title: How to know when a process created by Process.Start() was closed?
body: <p>I'm using this:</p>
  
  <pre><code>var proc2 = Process.Start(Path.GetFullPath(filename));
  proc2.Exited += (_, __) =&gt;
  {
      MessageBox.Show("closed!");
  };
  </code></pre>
  
  <p>But I close the window and don't get <code>MessageBox.Show("closed!");</code>. How to fix this?</p>