Forum posts for iexplore.exe

Process.Start(“IEXPLORE.EXE”) immediately fires the Exited event after launch.. why?

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.

this is the sample 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');
}


But the above code perfectly works when laucnching different process (ex:notepad) and it fires the exit event when i close the exe.

this only gives problem launching IE 8. Can someone clarify me what is the problem??

UPDATE

Most friends replied my post and saying why you can't just use an URL? why stick with IE?

here the reason

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.

Thanks

View complete forum thread with replies

Other posts related to iexplore.exe

See Related Forum Messages: Follow the Links Below to View Complete Thread

How can I find programatically where iexplore.exe is?
Strange ProcessorAffinity issue with IEXPLORE.exe
iexplore.exe process opens but I can't see it
Batch file to terminate all instances of IExplore.exe
Debugging SHDocVw.InternetExplorer.Quit not closing iexplore.exe process
Process.Start(“IExplore.exe”); <— Is this reliable?
VS2010 and IE10 Attaching the Script debugger to process iexplore.exe failed
How to capture keystrokes of iexplore.exe only?
Process.Start(“IEXPLORE.EXE”) immediately fires the Exited event after launch.. why?
Unhandled exception at 0x75619617 (KernelBase.dll) in iexplore.exe
Process.Kill does not seem to work with iexplore.exe
invoke iexplore.exe in already launched instance using ShellExecuteEx
Run iexplore.exe invisibly
Attaching the Script debugger to process '[XXXX] IEXPLORE.EXE' on machine 'NAME' failed
Can I pass the -f parameter to iexplore.exe when using Watir?

What is the carbon footprint of your coffee?

Is it low? Is it high? Can this things really kill the planet Earth? Maybe the answer will surprise you. Maybe not.