Results 1 to 3 of 3

Thread: Multithreading.. (doing more than one thing at once) with webbrowsers

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2000
    Posts
    1,195

    Multithreading.. (doing more than one thing at once) with webbrowsers

    I have 20 or so websites in a listbox and 4 webbrowsers on a form.

    For each website, i have to use the code

    ===================================
    x = x + 1

    webbrowser1.navigate list1.list(x)

    do
    doevents
    loop until webbrowser1.busy = false

    posttosite

    do
    doevents
    loop until webbrowser1.busy = false
    ===================================

    and then it loops to the next item in the listbox.

    My question is, how can i get 4 webbrowsers to function independantly of each other? that is, each webbrowser uses the code above, replacing webbrowser1 with the name of the control for that particular webbrowser. That way, once a webbrowser is done going throught that code (because the time it takes for each site to load is different), it automatically navigates to the next item in the listbox, and goes through the code, and goes to the next site.

    Of course, the 'next site' is determined by the variable x, and x goes up by one as each webbrowser starts its thing.

    So, anyone know how to do this?

  2. #2

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2000
    Posts
    1,195

    Help! Doing an action if a navigate fails in a webbrowser..

    Last edited by qpabani; Jun 19th, 2001 at 08:53 PM.

  3. #3
    Hyperactive Member
    Join Date
    Apr 2001
    Posts
    315
    Use the DownloadComplete and DocumentComplete events.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width