Results 1 to 10 of 10

Thread: progress while downloading

  1. #1

    Thread Starter
    Addicted Member Jakys's Avatar
    Join Date
    Dec 1999
    Location
    Norway
    Posts
    180

    progress while downloading

    i wat to download a file from the internet, AND show its progress...

    I have gotten a tip on using the webbrowser control, but i didn't get it to work without a "save to" dialog box showing....

    now i am using the inet control, with the code found here.

    but then i cant get it to show the progress , so does anyone know how to to this?

    Thanks in Advance!
    MSN: [email protected]

    "Enhetssirkelen løser alle problemer" - ÅJT

  2. #2
    Addicted Member csammis's Avatar
    Join Date
    Mar 2001
    Location
    /dev/null
    Posts
    226
    For one, the code you linked to doesn't have to do with the Inet control

    But...the code you linked to also will have no facility for showing the progress. That's the idea of dialog-less methods.
    Things I've Said:
    "Life's funny like that...elephants can wear frilly lace panties, and Dubya still looks like a monkey in a big chair"
    "Take four goats and strap one to each foot of a llama. Presto, goat-powered llama!"
    "You want to get me to work more, get me a Coke. No? Then deal with inferior garbage, I'm not coding another line and your clients can go to......thanks, I'd love a Coke right about now!"

  3. #3

    Thread Starter
    Addicted Member Jakys's Avatar
    Join Date
    Dec 1999
    Location
    Norway
    Posts
    180
    ok..... my mistake

    but when you download a file from IE, the progress is shown.... its like that with all browsers, download managers etc.... so it has to be a way to do it in vb too!

    thanks in advance
    MSN: [email protected]

    "Enhetssirkelen løser alle problemer" - ÅJT

  4. #4
    Addicted Member csammis's Avatar
    Join Date
    Mar 2001
    Location
    /dev/null
    Posts
    226
    You may try hacking one out with the Winsock control...it has the capacity to show the bytes received versus the total bytes to receive, so you could make a progress bar and control the value that way
    Things I've Said:
    "Life's funny like that...elephants can wear frilly lace panties, and Dubya still looks like a monkey in a big chair"
    "Take four goats and strap one to each foot of a llama. Presto, goat-powered llama!"
    "You want to get me to work more, get me a Coke. No? Then deal with inferior garbage, I'm not coding another line and your clients can go to......thanks, I'd love a Coke right about now!"

  5. #5

    Thread Starter
    Addicted Member Jakys's Avatar
    Join Date
    Dec 1999
    Location
    Norway
    Posts
    180
    thanks.... ill try it out

    but if you got a turtorial on how do to it etc. please post it
    MSN: [email protected]

    "Enhetssirkelen løser alle problemer" - ÅJT

  6. #6
    Paradox
    Guest
    If you want a time left indicator as well, all you need to do is measure the time it takes to download a fraction of a file, say, 1/20th of it. Then, you multiply it by the denominator and BAM, time it'll take to download. Time elapsed is self explanitory, and time left is simply total-elapsed. Hope this can be of some use.
    Steve

  7. #7

    Thread Starter
    Addicted Member Jakys's Avatar
    Join Date
    Dec 1999
    Location
    Norway
    Posts
    180
    i was actually thinking about that....

    but im not good at "exploring" controls
    so do any of you got any examples downloading files with the winsock control ? :P

    thanks in advance!
    MSN: [email protected]

    "Enhetssirkelen løser alle problemer" - ÅJT

  8. #8
    Knele
    Guest
    well I just did the same in my app using this help:
    http://www.shadoware.de/vb/filedownload.html
    It's explained in german, but the code is easy to understand.
    If you don't get it, post it here and i'll put my version of the code here.

  9. #9

    Thread Starter
    Addicted Member Jakys's Avatar
    Join Date
    Dec 1999
    Location
    Norway
    Posts
    180
    THANKS!! just what i needed!

    im trying to insert code getting bytes received/ bytes total, kb/s and time left, but as i said im not any good at exploring controls , so please post your code
    MSN: [email protected]

    "Enhetssirkelen løser alle problemer" - ÅJT

  10. #10

    Thread Starter
    Addicted Member Jakys's Avatar
    Join Date
    Dec 1999
    Location
    Norway
    Posts
    180
    i have now an indicator displaying kb received/total, and i am almost done with the kb/s indicator, BUT i cant get it to refresh only every second.... it refreshes severeral times in each second, which means the download speed are showed to be 5-6 kb/s, instead of 30 which it really is...

    i could just multiply it with 5, but i dunno if it will ALWAYS be correct then... and the little difference in 5-6 kb/s will be 25-30 kb/s.....

    i added a timer but couldn't make it to work then....

    im not sure how to deal with the "time left" indicator..... i havn't started on that one yet......
    MSN: [email protected]

    "Enhetssirkelen løser alle problemer" - ÅJT

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