Dan,
In this case, you will not want to use the Process class to start up
internet explorer. If you do this, you will not be able to actually figure
out in a definitive manner which instance is "yours".
Rather, check out this knowledge base article titled "How to connect to
a running instance of Internet Explorer", located at (watch for line wrap):
http://support.microsoft.com/default...b;en-us;176792
It shows how to connect to a running instance of IE. This isn't why I
referred you to the article. It's in VB6, but it tells you which dlls to
reference, as well as which interfaces/classes to call.
All you have to do is create a new instance of SHDocVw.InternetExplorer
and then you can control it through that.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Dan Neely" <Da******@discussions.microsoft.com> wrote in message
news:91**********************************@microsof t.com...
I'm creating a copy of IE using System.Diagnostics.Process and I can pass
it
any URL at startup, but can't find a way to check what page is open, or to
send a new page.
I'm implementing this for html help, and only want to change the page if
the
user has navigated away from the current target, otherwise I just want to
give the broswer focus again. I'm reluctant to use the help provider class
because it opens using the system default browser and our (client
provided)
style sheets don't work in FF.