locked
webbrowser.busy vs webbrowser.readystate

    Question

  • What is the difference between the two methods below of waiting for a web page to load up fully?

     

     

    Dim wbBrowser As New SHDocVw.InternetExplorer

     

     

    While wbBrowser.Busy = True

    Thread.Sleep(100)

    End While

     

     

    While wbBrowser.ReadyState < SHDocVw.tagREADYSTATE.READYSTATE_COMPLETE

    Thread.Sleep(100)

    End While

     

    Sometimes one seems to work but not the other and viceversa

    Tuesday, September 19, 2006 11:06 PM

Answers

  • webpages are not always recieved in the same way - this is one reason why you seem to think/everyone thinks that one method will work and not the other but both probably will.

    I'm unsure what the difference would be but seems to be the same... the first one being easier to read/catch for the eye.

    Tuesday, September 19, 2006 11:59 PM