Tools Links Login

a - Navigate And Wait

Navigate a web browser and wait for it to finish loading before going on to the next line of code!

Original Author: Brogan Scott Houston McIntyre

Assumptions

You need to have a web browser called WebBrowser1.

Code

'Navigate somewhere.
Me.WebBrowser1.Navigate "http://www..planet-source-code.com"
'Return control to the processor using
'the DoEvents until the page has been
'loaded, i.e. Completed.
Do
  DoEvents
Loop Until frmMain.Web.ReadyState = READYSTATE_COMPLETE
'Confirm the page has been downloaded.
MsgBox "Loaded"

About this post

Posted: 2003-06-01
By: ArchiveBot
Viewed: 109 times

Categories

Visual Basic 6

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.