Determining top most Internet Explorer window. (top most)
Posted on 2004-11-04
having a little trouble with this one.
I created an ie toolbutton app, from which I need to get the URL of the browser that launched my app from.
Here is the form startup code I have so far...
Dim SWs As New SHDocVw.ShellWindows
Dim tmpIE As SHDocVw.InternetExplorer
For Each tmpIE In SWs
txtURL.Text = tmpIE.LocationURL
this works ok, but if they have more than one broswer open, I get the url from the browser that
navigated last, I need to get the URL from the browser they launched my app from, or what should be the current top most IE window. I have looked into functions to determine this, but they are all C++ examples which is foriegn to me.
Also my app runs as topmost, however I could set this after I have pulled the URL if I have to.