Results 1 to 12 of 12

Thread: Progress Bar >> Web Browser

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    15
    I have a progress bar and a web browser, I want the progress bar to show the progress of the browser, how do i do it? Plz help me, I'll give u credit. thank u

  2. #2
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    461
    Basically you have to get the size of all the graphics files and the HTML file, add them all up and then calculate the difference between what you have already downloaded.


    The basic answer is.... you can't do it!!

    Why?

    Because Internet Explorer AND Netscape can't do it.

    How do you know how long a HTML file is when you are loading it? It might come from a script that is continually passing HTML until some time it decides to do the end tag.

    Its just a weakness of the HTTP protocol that the internet is based on

  3. #3
    Addicted Member
    Join Date
    Jan 1999
    Posts
    204
    do you mean with the webcontrol for vb is so let me look it up i have the code some where in my head .
    Code:
    Private Sub WebBrowser1_ProgressChange(ByVal Progress As Long, ByVal ProgressMax As Long)
    ProgressBar1.Max = ProgressMax
    ProgressBar1.Min = 0
    ProgressBar1.Value = Progress
    End Sub
    hope this is what you want
    WHat would we do with out Microsoft.
    A lot more.

  4. #4
    Guest
    Why can't it be done? You can't do it without the webbrowser control, but you can do it.

    Without a progressbar:
    Code:
    Private Sub WebBrowser1_ProgressChange(ByVal Progress As Long, ByVal ProgressMax As Long)
    Label2.Caption = "Reading - " & Progress & " of " & ProgressMax & " bytes"
    End Sub
    With a progressbar:

    Code:
    Private Sub WebBrowser1_ProgressChange(ByVal Progress As Long, ByVal ProgressMax As Long)
    On Error Resume Next
    Progressbar1.Min = 0
    Progressbar1.Max = ProgressMax
    Progressbar1.Value = Progress 
    End Sub

  5. #5
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    461
    Doesn't that just give you the progress of the HTML page itself?

    I didn't realise it included all the graphics as well which I would assume is part of the progress of downloading the page.

  6. #6
    Addicted Member
    Join Date
    Jan 1999
    Posts
    204
    yeah it gives the whole page progress images and all
    WHat would we do with out Microsoft.
    A lot more.

  7. #7

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    15

    Unhappy Not working :P

    Bob- it didn't work, the program showed that:
    ProgressBar1.Max = ProgressMax
    was wrong

    and Mathew Gates -- it worked at first, but now its, now..
    hehe thats strange, any ideas?

  8. #8
    Guest
    Explain more, I have no clue as to what you just said.

    Only one t? In Matthew!? It's not possible! I AM MATTHEW GATES. That is two Ts.

    Copy the above info into your head so the next time you see me, you can say, "Hi Matthew Gates....with two Ts."

    [Edited by Matthew Gates on 07-17-2000 at 07:30 PM]

  9. #9

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    15
    okay, maTThew .. it worked the first time i tried it, but now when i try it , it doesn't work! :P

  10. #10

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    15
    OKay nevermind i got it!! :P

  11. #11
    Lively Member
    Join Date
    Jul 2000
    Location
    Vaxjo, Sweden
    Posts
    85
    [quote]I AM MATTEW GATES[quote]
    I though you were Matthew Gates...

    //Anders
    Reality is what you make up when you can't handle your fantasies.

  12. #12
    Guest
    Hehe...mispelled my own name..stupid keyboard.

    MATTHEW is how it is spelled. Always spelled with two t's and never forget to leave out any letter like I did which is now changed . Thank you.

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