jeudi 25 mai 2017

How do I detect when a page is completely loaded using webkit webbrowser in vb.net

I am using:

Private webBrowser2 As New WebKit.WebKitBrowser
AddHandler webBrowser2.DocumentCompleted, AddressOf WaitForPageLoad

When the WaitForPageLoad subroutine is called, I do some things (display some data in text boxes) and they all happen before the page is actually loaded. I see the page get displayed a couple of seconds later.

How can I wait for the page to fully render?

Thanks.




Aucun commentaire:

Enregistrer un commentaire