Hello! I want to create an application for a PC in C #, I myself am still a beginner.
For the GUI, I chose windows forms
The application is based on the WebBrowser component.
The window will have only two components: the address bar and the browser itself.
If you write some address in the address bar and click on the inter content on the browser will be displayed.

And now attention

It is necessary for one text document to flick the list of addresses where the browser is addressing.

  • Judging by the mistakes, the Russian language is not your own ... but still, I understood most of the text, it seems to be correct, but try to describe the question in more detail, preferably with simple sentences, until the question is very clear. - rdorn
  • Forget everything I wrote. To better explain exactly what method I'm looking for I will give an example from the android, in android there is a method shouldOverrideUrlLoading if you do not know this method look on the Internet its structure I am looking for a method like this. - Bahodir

1 answer 1

You need a WebBrowser.Navigated event. This event occurs when WebBrowser goes into a new document and starts loading it.

// Updates the URL in TextBoxAddress upon navigation. private void webBrowser1_Navigated(object sender, WebBrowserNavigatedEventArgs e) { toolStripTextBox1.Text = e.Url.ToString(); // or toolStripTextBox1.Text = webBrowser1.Url.ToString(); } 

Here it is more:

https://msdn.microsoft.com/ru-ru/library/system.windows.forms.webbrowser.navigated(v=vs.110).aspx

https://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowsernavigatedeventargs(v=vs.110).aspx