title: Process.Start("IEXPLORE.EXE") immediately fires the Exited event after launch.. why?
body: <p>i have a strange problem with IE8 installed in xp. i was trying to launch IE using an System.Diagnostics.Process.Start method in c#. And i have a requirement to trap the exited event of the IE and do some operation. But i ended up in a rather strange problem where the IE immediately fires the exited event after launch.</p>
  
  <p>this is the sample code</p>
  
  <pre><code>     Process objProcess = Process.Start("IEXPLORE.EXE", "http://google.com");
  
       if (objProcess != null)
      {
          objProcess.EnableRaisingEvents = true;
          objProcess.Exited += new EventHandler(myProcess_Exited);        
      }
  
      public  static void myProcess_Exited(object sender, System.EventArgs e)
      {
          MessageBox.Show("You exited");
      }
  </code></pre>
  
  <p>But the above code perfectly works when laucnching different process (ex:notepad) and it fires the exit event when i close the exe.</p>
  
  <p>this only gives problem launching IE 8. Can someone clarify me what is the problem??</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Most friends replied my post and saying why you can't  just use an URL? why stick with IE?</p>
  
  <p><strong>here the reason</strong></p>
  
  <p>the ultimate aim of the app is to launch an URL from the windows application and will hide an exe when working on the IE. And show the exe after closing the IE.</p>
  
  <p>Thanks</p>