Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WebBrowser Control

Status
Not open for further replies.

TJLMO

MIS
Feb 12, 2002
15
US
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.
 
You will need to stick a
DoEvents
in there or instead of looping, let the DownLoadComplete Event of the WebBrowser kick off your processing.
If you are going to loop, you had better provide some kind of timeout also. Generate Forms/Controls Resizing/Tabbing Class
Compare Code (Text)
Generate Sort Class in VB or VBScript
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top