title: How to send my program to background while a certain process is running
body: <p>I have a program that starts another program (iexplore.exe), then my program should go "invisible" or atlast to background, and stay there while this asd.exe is running. This code is working, BUT it eats memory, and sometimes its just stays hiden while asd.exe is not running anymore. There must be a more efficient way to do this =)
  So my program code :</p>
  
  <pre><code>   this.Hide();
     Process.Start(Path.Combine(Path, "iexplore.exe")); 
     Process[] Running_ = null;
     do
     { // this loops eats memory!
        System.Threading.Thread.Sleep(500);
        Running_ = null;
        Running_ = Process.GetProcessesByName("iexplore");
     }while (Running_.Length &gt; 0);
     this.Show();
  </code></pre>