this code doesn’t work why?
private void web_FBCheck_Navigating(object sender, WebBrowserNavigatingEventArgs e)
{
if (web_FBCheck.Url.ToString() == ("http://facebook.com/"))
{
MessageBox.Show("Welcome to Facebook");
textBox3.Text = web_FBCheck.Url.ToString();
}
}
or use if (web_FBCheck.Url.ToString() == "http://facebook.com/") without ( ) in the link
I’d guess it’s because you’re handling
Navigatinginstead ofNavigated, and possibly because of URL formatting. You should be doing something like this instead: