I am attempting to run a page using the WebBrowser control and then once it has completed, I want to unload the browser. I have tried using:
Do Until frmBrowser.wbbBrowser.ReadyState = READYSTATE_COMPLETE
Loop
to determine when the page has loaded. When I debug, it works fine. However, it seems to be an endless loop when I simply run the code.
Any ideas? Thanks in advance.
Do Until frmBrowser.wbbBrowser.ReadyState = READYSTATE_COMPLETE
Loop
to determine when the page has loaded. When I debug, it works fine. However, it seems to be an endless loop when I simply run the code.
Any ideas? Thanks in advance.