Wednesday, April 10, 2013

How to wait for a webbrowser to finish loading.

This can easily be done with 3 lines of code.

 Do Until WebBrowser1.ReadyState = WebBrowserReadyState.Complete
                    Application.DoEvents()
 Loop

What this does it run the application events until the webbrowser.readystate is complete.

No comments:

Post a Comment