473,324 Members | 2,417 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

get url from running IE

Is there any way to get an instance of an running IE and read the url the
browser is displaying?

Thanks
May 4 '06 #1
5 2526
If you're only interested in IE it may be better to use the COM APIs
in Shdocvw.dll. If you Tlbimp it you can write code like this to dump
info on all IE (and Windows Explorer) windows.

Dim ie As InternetExplorer
For Each ie In New ShellWindows()
Console.WriteLine(ie.HWND)
Console.WriteLine(ie.LocationName)
Console.WriteLine(ie.LocationURL)
Next
--
Get a powerful web, database, application, and email hosting with KJM
Solutions
http://www.kjmsolutions.com

"Michael Fällgreen" <mf*@ulle.se> wrote in message
news:u%****************@TK2MSFTNGP05.phx.gbl...
Is there any way to get an instance of an running IE and read the url the
browser is displaying?

Thanks

May 4 '06 #2
"Michael Fällgreen" <mf*@ulle.se> schrieb:
Is there any way to get an instance of an running IE and read the url the
browser is displaying?


\\\

' Requires a reference to "Microsoft Internet Controls" ("SHDocVw.dll").
For Each IE As InternetExplorer In New ShellWindows()
MsgBox(IE.LocationURL)
Next IE
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

May 4 '06 #3
Wasn't this what I posted or did I miss something?

--
Get a powerful web, database, application, and email hosting with KJM
Solutions
http://www.kjmsolutions.com

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:u2**************@TK2MSFTNGP04.phx.gbl...
"Michael Fällgreen" <mf*@ulle.se> schrieb:
Is there any way to get an instance of an running IE and read the url the
browser is displaying?


\\\

' Requires a reference to "Microsoft Internet Controls" ("SHDocVw.dll").
For Each IE As InternetExplorer In New ShellWindows()
MsgBox(IE.LocationURL)
Next IE
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

May 4 '06 #4
Kelly,

The time difference is only 11 minutes, that is absolute less than the
normal time that somebody can read the complete newsgroup while you are than
sending a message.

Cor

"vbnetdev" <vb******@community.nospam> schreef in bericht
news:%2****************@TK2MSFTNGP05.phx.gbl...
Wasn't this what I posted or did I miss something?

--
Get a powerful web, database, application, and email hosting with KJM
Solutions
http://www.kjmsolutions.com

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:u2**************@TK2MSFTNGP04.phx.gbl...
"Michael Fällgreen" <mf*@ulle.se> schrieb:
Is there any way to get an instance of an running IE and read the url
the browser is displaying?


\\\

' Requires a reference to "Microsoft Internet Controls" ("SHDocVw.dll").
For Each IE As InternetExplorer In New ShellWindows()
MsgBox(IE.LocationURL)
Next IE
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>


May 4 '06 #5
Kelly, Cor,

"Cor Ligthert [MVP]" <no************@planet.nl> schrieb:
The time difference is only 11 minutes, that is absolute less than the
normal time that somebody can read the complete newsgroup while you are
than sending a message.


Yeah, I was looking for a previous message where I gave that reply in Google
Groups but didn't come up with the right keywords immediately.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

May 4 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Ross Presser | last post by:
OK, I've been researching this problem and can't find a definitive answer yet. The situation is one that seems to have come up a few times to different folks. I am writing an application that...
4
by: Bill Dika | last post by:
Hi I am trying to calculate a running total of a calculated textbox (tbAtStandard) in GroupFooter1 for placement in a textbox (tbTotalAtStandard) on my report in Groupfooter0. The problem...
1
by: Ennio-Sr | last post by:
Hi all! Testing a script where I need to make sure that postgresql is running before passing a <psql dbasename -c "insert into ..." > instruction I faced this curious behaviour: This is the...
1
by: Anonieko | last post by:
Query: How to display progress bar for long running page Answer: Yet another solution. REFERENCE: http://www.eggheadcafe.com/articles/20050108.asp My only regret is that when click the...
7
by: pradeep_TP | last post by:
hello all, I want to know how can I check whether a web site us running or not. I have used HttpWebRequest but when I give a web site address, It takes few number of seconds to throw exception...
3
by: Anil Kumar Sharma | last post by:
Hello, I am working on C# using vs.net 2003. I have faced two interesting problems. 1. Dynamically setting Default Button: I created a form and used it in various contexts. On basis of the...
4
by: tshad | last post by:
What would be a good way to check programmatically whether a service was running? We have a service that dies periodically and I need to check to see if this service is running. I know how to...
16
by: Gandalf186 | last post by:
I need to create a query that produces running totals for every group within my table for example i wish to see: - Group A 1 5 9 15 Group B
2
by: upperclass | last post by:
Hi, I'm trying to find a decent way to measure program running time. I know clock() is probably the standard way of doing it but clock_t overflows too quickly. The target program running time...
1
by: =?Utf-8?B?Q2lhcmFuIE8nJ0Rvbm5lbGw=?= | last post by:
On reflection, you could possibly make the app a self extracting zip file which extracts the EXE and a settings file and then starts the app, then when you app closes, it can repack the settings...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.