I have recently started building a Web Browser App using VB2010 which is working great so far. How do I update my URL textbox when I click on a link on a site?
For example:
When I visit your site the address bar reads "http://www.599cd.com" but when I click on 'News' it reads "http://www.599cd.com/blog/".
Cheers,
Kev
PS: I think the Webbrowser control works so much better in VB2010 than it did in VB6!
Reply from Richard Rost:
It's been a while since I wrote code for the WebBrowser control, but one of its properties is the URL you just loaded. When the DocumentComplete event fires just set your textbox equal to that URL.
And on my site the NEWS and BLOG are the same thing. :)
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Visual Basic Forum.