kbhamber

kbhamber

  • NA
  • 11
  • 0

Process question

Mar 16 2005 3:02 PM
I was trying to launch IE using Process class in .NET. I wanted to get notified when IE is closed. I subscribed to exited event in Process class. When I close IE manually the event handler is never called. What I am doing wrong here? The following is the code: private void button1_Click(object sender, System.EventArgs e) { string file = @"IExplore.exe"; ProcessStartInfo si = new ProcessStartInfo( file ); process.StartInfo = si; process.Start(); process.Exited += new EventHandler(process_Exited); } private void process_Exited(object sender, EventArgs e) { } Thanks in advance

Answers (1)