title: How to open "Microsoft Edge" from c# and wait for it to be closed?
body: <p>I'm building a Windows Form application and I want to open "Microsoft Edge" through my app with a specific URL and wait until the user closes the Edge Window.</p>
  
  <p>I tried it with this code:</p>
  
  <pre><code>using (Process p = Process.Start("microsoft-edge:www.mysite.com"))
  {
      p.WaitForExit();
  }
  </code></pre>
  
  <p>When I execute this code, Edge is launching with the correct URL ... but got a null object reference. The "p" object that I'm getting from <code>Process.Start</code> is null.</p>
  
  <p>I think it's related to the reuse of Windows application.</p>
  
  <p>Does anyone have a workaround/have an idea how I can wait for the user to close Edge?</p>