I have been working with c# for about a year and with Visual Studio for a couple months. I was debugging a web browser that I made and I found out that when I go to a web site other than google, the url on the search bar remains the same. even though I told it to change.
here's the code that tells the search bar to change
private void webBrowser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
textBox1.Text = webBrowser.Url.ToString();
}
and the full project is below. Any help will be appreciated. Thanks :)