I have problem with code below. Can some one tell why it doesn't work in BackgroundWorker and how can i solve this problem
string address = "My URL";
webBrowser.Navigate(new Uri(address));
do
{
Application.DoEvents();
} while (webBrowser.ReadyState != WebBrowserReadyState.Complete);