Using Webbrowser Control in VB 5.0
Posted on 1998-07-30
I am writing an application in VB 5.0 that will navigate a large web site using the webbrowser control. After I make a call to the navigate method I would like to know when the web page is done loading. I can catch the code in the DocumentComplete event, however I would like the control in my code to be back where I called the navigate in the first place. Is there a way that I can signal an object and waitforsingleobject after the call to navigate. I called Microsoft and they suggested that I put a Do Loop with a DoEvents inside after my call to navigate and then check a flag, which would get set in the document complete event function. I tried this and it worked but it maxes out the cpu. Any suggestions?