954,525 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to get IE address bar information (URL)?

Hi,

i work with C#.
how to get Internet Explorer address bar information? When i`m type in to address bar e.g. http://www.google.com , i want to get message with the same URL
e.g. Welcome to http://www.google.com How to get this?

foreach (InternetExplorer ie in new ShellWindowsClass())
{
string url = ie.LocationURL;

MessageBox.Show("Welcome to" + url, "Welcome", MessageBoxButtons.OK,
MessageBoxIcon.Information);


}

This code does not work correctly. I get info about open directory e.g. C:/User/...

Can anyone help me?

midexlis
Newbie Poster
1 post since Apr 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: