|
-
Jul 16th, 2000, 08:39 PM
#1
Thread Starter
New Member
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
-
Jul 16th, 2000, 08:52 PM
#2
Hyperactive Member
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
-
Jul 16th, 2000, 09:37 PM
#3
Addicted Member
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.
-
Jul 16th, 2000, 09:41 PM
#4
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
-
Jul 16th, 2000, 09:48 PM
#5
Hyperactive Member
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.
-
Jul 16th, 2000, 09:55 PM
#6
Addicted Member
yeah it gives the whole page progress images and all
WHat would we do with out Microsoft.
A lot more.
-
Jul 16th, 2000, 10:11 PM
#7
Thread Starter
New Member
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?
-
Jul 16th, 2000, 10:29 PM
#8
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]
-
Jul 17th, 2000, 09:24 AM
#9
Thread Starter
New Member
okay, maTThew .. it worked the first time i tried it, but now when i try it , it doesn't work! :P
-
Jul 17th, 2000, 09:27 AM
#10
Thread Starter
New Member
OKay nevermind i got it!! :P
-
Jul 17th, 2000, 09:43 AM
#11
Lively Member
[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.
-
Jul 17th, 2000, 06:29 PM
#12
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|