axWebBrowser control how to???

Hi,

I have a form in wich i have a text box for the URL, a Go button and a axWebBrowser control.

I enter an address into the textbox, after wich i hit the go button.

I want to make the textbox change the location (it's text property), after links are selected in the axWebBrowser control (keep track of the current link).

How can i make this?

P.S. I need only C# examples. Thank you very much.
LVL 1
drcyrus3dAsked:
Who is Participating?
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
When the DocumentCompleted() event fires, set your TextBox to the current URL:

       private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
        {
            textBox1.Text = webBrowser1.Url.ToString();
        }
 
You can also use the Navigated() or Navigating() events.
0
 
drcyrus3dAuthor Commented:
Thank you.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.