Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to display WebBrowser.URL?

Posted on 2010-11-18
2
Medium Priority
?
544 Views
Last Modified: 2012-05-10
Hello.

I have designed a form in my application to navigate to web sites that have been saved in a database.  I can't figure out how to display the WebBrowser1.URL in a text box, similar to the way Internet Explorer does.  Could you please give me some sample code?  I would like this code to run everytime the WebBrowser navigates to a new web site.

Thank you!
0
Comment
Question by:Agent909
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 59

Accepted Solution

by:
HainKurt earned 2000 total points
ID: 34170533
use

WebBrowser.Navigating Event
or
WebBrowser.Navigated Event


and here get the URL and set it to text value of your control...

check here
http://msdn.microsoft.com/en-us/library/d61470az.aspx
http://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.url.aspx
0
 
LVL 1

Author Closing Comment

by:Agent909
ID: 34170627
Thank you.  I got it working!
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Bada platform is becoming more and more famous this days and people talking about same. Some friends included those who have bada OS mobile asked me "what is bada?"and "what its features?". That encouraged me to research and write this article. [st…
Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question