Solved

How to display WebBrowser.URL?

Posted on 2010-11-18
2
494 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
2 Comments
 
LVL 51

Accepted Solution

by:
HainKurt earned 500 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Internet is a big network which is formed by connecting multiple small networks.It is a platform for all the users which are connected to it.Internet act as platform in different fields. Such as: Internet  as a collaboration platform. Internet  as…
Citrix XenApp, Internet Explorer 11 set to Enterprise Mode and using central hosted sites.xml file.
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.
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

760 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now