if (webBrowser1.Url.AbsoluteUri == "www.google.com")
{
label9.Text = webBrowser1.Url.AbsoluteUri;
}
This is my current code. When I press the button to run this I get the error.
Object reference not set to an instance of an object.
And I don’t know why it does that or how to fix it. Any help will be great.
Also It have to work in a timer so that it can be checked.
probably your
webBrowser1.Urlisnulltry below to get url