Solved

How to display WebBrowser.URL?

Posted on 2010-11-18
2
529 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:
Huseyin KAHRAMAN 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

#Citrix #Internet Explorer #Enterprise Mode #IE 11 #IE 8
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
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.
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.

733 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