Capture URL in IE address bar with C#

  • Thread starter Thread starter michael_hk
  • Start date Start date
You need to automate IE in order to be able to do it. If you want to
automate an existing instance of the IE, then you first need to get the
instanc by using shell, then automate it.

hope this helps

Fitim Skenderi


michael_hk said:
Hi,

How to capture the text on the internet explorer address bar with C#?
I am working on window form, not ASP.NET.

eg.

Say now I open IE and go to http://www.google.com

Now I want to use a C# windows application to capture the URL,
http://www.google.com

Many thanks.

Michael
 
You can also use Win32 APIs to get hold of the hWnd for the IE address bar
and then get the text that way.

Fitim Skenderi said:
You need to automate IE in order to be able to do it. If you want to
automate an existing instance of the IE, then you first need to get the
instanc by using shell, then automate it.

hope this helps

Fitim Skenderi
 
Back
Top