How to get IE address bar information (URL)?

What I want to know is how can I get Internet Explorer address bar information (URL)? When i`m type into 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?

Note: I will add a button for my application in the Command Bar in the Internet Explorer and when the user click on this button it will show to him a message box Contain the URL.

Andre I will kidnap you because you are a very nice man. Thank you so much for your interesting to help me :)
I will put a version of my software here when I am done with it.
Thank you all :) Read More

To get the current query string you would simply do something like the following:

Dim query as String = Request.QueryString("d")

This will assign the value of the "d" querystring to the string variable "query". Note that all query string values are strings, so if you're passing numbers around, you'll need to "cast" or convert those string values to numerics (be careful of exceptions when casting, though). For example:

The QueryString property of the Request object is a collection of name/value key pairs. Specifically, it's of type System.Collections.Specialized.NameValueCollection, and you can iterate through each of the name/value pairs as so:

Dim coll As System.Collections.Specialized.NameValueCollection = Request.QueryString
Dim value As String
For Each key As String In coll.AllKeys
value = coll(key)
Next

Sorry dude. I was moving to larger offices, so all my time went into setting everything up and get going again.:)

What you need is the following code (by another member here on DW:)) to get the url to a message box.
mshtml-->Add reference microsoft.mshtml
SHDocVw--> Go to Add Reference-->Go to Broese tab-->C:--Windows--System32--shdocvw.dll