Q:

Checking if WebBrowser has loaded

If I have 
browser.Navigate("http://www.test.com");

In a method, how can I check if it has loaded the webpage from within the same method?
Thanks.

A:

To check if it's loaded wherever, do:
if(browser.ReadyState == WebBrowserReadyState.Complete) {
    // It's done!
}

However, if you're waiting for it to load, handle the DocumentCompleted event instead:
browser.DocumentCompleted += WhenItsDone;

