title: Process WaitForExit() not waiting for Windows Explorer to close
body: <p>The code below is my attempt to open Windows Explorer, then wait for the user to close it, before continuing with the program.</p>
  
  <p>This works using Notepad.exe but not Exlorer.exe</p>
  
  <pre><code>Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
      Dim newProc As Diagnostics.Process
      'newProc = Diagnostics.Process.Start("Notepad.exe") 'This works
      newProc = Diagnostics.Process.Start("Explorer.exe") 'This does not work
      newProc.WaitForExit()
      MsgBox("Continue Processing")
  </code></pre>
  
  <p>End Sub</p>
  
  <p>Thanks for your help</p>