I'm also trying to figure out how to do a progress bar. I think that my problem is a little more complicated though. When I use this command:
Inet1.Execute , "Get Readme.txt Readme.txt"
my IcResponseCompleted event never occurs. The entire file is downloaded fine but it causes several problems.
For one, I can't interrupt the transfer, and for another I don't think I'll be able to show the progress remaining. Does anyone know why my icResponseCompleted isn't happening? By the way, someone else posted about how to do progress remaining earlier on this messageboard. You might want to check that out.
If you have any idea what my problem is, PLEASE email me. Is this a difference between VB 6 and VB 5? I'm using VB 6...
I have completed the application I was working on... It shows Download progress, K/Sec and several other things... The only thing is I went with a 3rd party control called PowerTCP. You can get it at www.dart.com. It's not cheap... But I feel it's worth the deal.
Well, I guess this should help y'all out a little bit :-) (those smiley pictures ehe)
Use the getchunk header as someone else said for the size, set the .max value of the progressbar to that and each time the file goes further 1kb or byte set the progress.value = progress.value + 1
and it ought to work
Might want to try using Winsock for downloading if possible cuz it has Bytes/TotalBytes