Hey
So i got a Webbrowse (wb_MainBrowser) and a button.
for the webbrowser i got a code that looks like this:
private void wb_MainBrowser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
if (wb_MainBrowser.Url.ToString() == "http://www.google.dk/")
{
MessageBox.Show("HEY");
}
}
and i got a button that goes
private void btn_Start_Click(object sender, EventArgs e)
{
if (!wb_MainBrowser.IsBusy)
{
wb_MainBrowser.Navigate("http://google.com/");
}
else
{
MessageBox.Show("Please let the page finish loading!");
}
}
for some reason it shows me the hey message, I've tried creating a new project, but im ending up with the same, for no apparent reason, and I'm getting rather irritated :(.
Is there anyway i can make it only execute it once?
Regards
-Jaz