I want to open site via WebBrowser .
I want fast way to know the my page opened or no.
Details:
some times internet connection has problem if that happen I want stop the program.
Printable View
I want to open site via WebBrowser .
I want fast way to know the my page opened or no.
Details:
some times internet connection has problem if that happen I want stop the program.
Add a handler for the WebBrowser's DocumentComplete event. When the event fires, you know the page opened successfully. If it doesn't fire within a reasonable length of time (say, 30 seconds) after you execute the .Navigate method, then the page did not open.
Thank Phil Weber ,But if happen any error like "Cannot find server" also DocumentComplete event will be work .
Becouse that temprary I will used page title
Code:If WebBrowser1.Document.Title = "Cannot find server" Then
end if
Thank again