?
Solved

axWebBrowser control how to???

Posted on 2006-04-08
2
Medium Priority
?
235 Views
Last Modified: 2010-04-16
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.
0
Comment
Question by:drcyrus3d
2 Comments
 
LVL 86

Accepted Solution

by:
Mike Tomlinson earned 2000 total points
ID: 16409615
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
 
LVL 1

Author Comment

by:drcyrus3d
ID: 16409628
Thank you.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

839 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