vb.net catch URL

nkoriginal used Ask the Experts™
Hello, I need to know how to get the URL in vb.net.
I've a form and I need to copy the current URL in my browser.

somebody can help with this?
It's really urgent!!!!

Thank for any help
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Are you saying that you have an Internet Explorer Browser Opject in your Form?


nop. I just want to copy the URL for any browser. Something like request.querystring but I need to get the http://www.xxxxxxx.com  The entire path.

webURL = webbrowser.Url.ToString()

Open in new window

Amazon Web Services

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

So you have a Visual Basic.NET application and you want it to grab the URL of ANY running browser? Such as Firefox, IE, or Opera? ....

Why not make a simple Webbrowser in VB and user that, its much easier to get the URL.

What is your goal?

Its been a while since I've used the API and custom controls to control and get data from Other Applications.


It doesn't work.  :(
Could you give the entire code in vb.net?
The code requires that you have a WebBrowser control on your form named webbrowser, and it will get the URL of it, even if the user navigates away from the start page.

I'm not used to VB.Net, but URL.toString() returns a String. Hopefully this will help you, I don't have VS.NET installed right now so I can't play with it =/ I typically answer PHP/Javascript/Ajax/VS<=6.0,Desktop Support questions, etc


I've a webpage in .net, in a page I've  a form. So when the USER submit the form, the form it will send the URL.
That's the reason I need that function.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial