Get ReadyState from WebBrowser control without DoEvents
Below is a basic WinForms app code, illustrating how to wait for the DocumentCompleted event asynchronously, using async/await. It navigates to multiple pages, one after another. Everything is taking place on the main UI thread. Instead of calling this.webBrowser.Navigate(url), it might be simulating a form button click, to trigger a POST-style navigation. The webBrowser.IsBusy async … Read more