ole olala

ole olala

  • NA
  • 1
  • 0

WebBrowserDocumentCompleted event

Dec 25 2007 4:50 PM
hello,

I am a starter with c# programming language. I placed a simple web browser into a window form. I assign a url address to the browser and I want to see if the browser successfully opened the link I provided.

I know that there is a eventhandler called

 private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)

and I can assign boolean variable inside the eventhandler to see if the event is successful.

however, after assigning the url for the browser, I want to write something like

if (webBrowser1_DocumentCompleted)
{
 //my code here
}

is this possible or should I stick to the eventhandler?