vb.net help required

Discussion in 'Programming' started by thenetfreak, Jun 17, 2006.

  1. #1
    How to wait unltil the webbrowser control loads a webpage in vb.net
     
    thenetfreak, Jun 17, 2006 IP
  2. mystikmedia

    mystikmedia Jedi Master

    Messages:
    5,564
    Likes Received:
    498
    Best Answers:
    0
    Trophy Points:
    270
    #2
    Call the code from the done event (it's not actually called Done, but I don't know the exact wording) of the web browser control would be the best way, I would think.
     
    mystikmedia, Jun 17, 2006 IP
  3. pher

    pher Well-Known Member

    Messages:
    403
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    125
    #3
    Within the object element, there is a property called readyState. You can check this property to determin what state the object is at.

    0 - Object is not initialized
    1 - Object is loading
    2 - Object is finished loading
    3 - User can use the object, but it may not be fully loaded
    4 - Object is completely initialized.

    There is an event called onReadyStateChange (I think). This gets fired when the readyState of the object changes.
     
    pher, Jun 19, 2006 IP