Solved

How to display WebBrowser.URL?

Posted on 2010-11-18
2
533 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 54

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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

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.
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.
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…

734 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