Solved

How to display WebBrowser.URL?

Posted on 2010-11-18
2
536 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 56

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I recently found myself in a Corporate Situation where the client had requested blocking access to any and all websites except his own Domain? Easy? I am sure this would be your answer but their requirement was, this has to be done without using…
Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
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 +…

635 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