DocumentCompleted event when the page is fully loaded in WebBrowser form (Windows Forms C#)

Posted by Tolga E on Stack Overflow See other posts from Stack Overflow or by Tolga E
Published on 2012-11-01T04:47:20Z Indexed on 2012/11/01 5:00 UTC
Read the original article Hit count: 80

Filed under:
|
|

I use the DocumentCompleted but this gets fired multiple times. Now I've seen this example if (e.Url.AbsolutePath != this.webBrowser.Url.AbsolutePath) which is used to confirm that the requested file is completed loading but this gets fired before anything else (like images) on the page is loaded. Thus I'm still not able to tell when a webpage is fully loaded.

Is there a way to ensure that the webpage has fully loaded and there's nothing being loaded?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET