setting and getting current path of a ie window

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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.aspx?scid=kb;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 said:
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.

This looks like what I need. VB source isn't a major issue. While far from
my prefered language it's easily readable, and that's the key point.
 
Nicholas Paldino said:
All you have to do is create a new instance of SHDocVw.InternetExplorer
and then you can control it through that.

Where can I find documenatation on these classes? I seem to be getting what
I want, but I'd like toaccess the contents of one of the frames to see which
page of the doc the user is at, and to be able to forcably navigate to a
different one for context sensitive tasks (might need to simulate a
mouseclick since I think the subpages are dynamicly generated via xsl).
 
Back
Top