I want to pause the execution of my thread until a particular div has been loaded via ajax into a WebBrowser instance. Obviously I can continuously check for the presence of thi
The following should work,
while (Browser.Document.GetElementById("divid") == null) { Application.DoEvents(); Thread.Sleep(200); }
The above worked for me...