DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 9 of 9

Thread: Simple downlod progress!!??

  1. #1
    Michael K Guest

    Simple downlod progress!!??


    I want to download a file from a web site "exe or zip" and show a simple download
    progress bar & text. Similar to the one we all see when IE downloads a file.
    Bytes received / total [--- ] etc..

    The winsock activeX control seems to be useless for this. I can connect but
    not download anything. The Internet transfer control will download a file
    but you can NOT check the byte progress without stopping the transfer. I
    prefer not to use a third party control. I'm sure this has to be possible
    with plain old VB and the controls that come with it. (VB6 SP3)

    Any suggestions? An API solution is fine if it will work.

    Thanks,
    Mike

  2. #2
    Jay Guest

    Re: Simple downlod progress!!??

    There's a really simple routine using about 5 lines of code here:

    http://www.mvps.org/vbnet/code/netwo...ledownload.htm

    IE4 or higher required tho.

    - J

    Michael K wrote in message <393fdd20$1@news.devx.com>...
    >
    >I want to download a file from a web site "exe or zip" and show a simple

    download
    >progress bar & text. Similar to the one we all see when IE downloads a

    file.
    >Bytes received / total [--- ] etc..
    >
    >The winsock activeX control seems to be useless for this. I can connect but
    >not download anything. The Internet transfer control will download a file
    >but you can NOT check the byte progress without stopping the transfer. I
    >prefer not to use a third party control. I'm sure this has to be possible
    >with plain old VB and the controls that come with it. (VB6 SP3)
    >
    >Any suggestions? An API solution is fine if it will work.
    >
    >Thanks,
    >Mike




  3. #3
    Jay Guest

    Re: Simple downlod progress!!??

    There's a really simple routine using about 5 lines of code here:

    http://www.mvps.org/vbnet/code/netwo...ledownload.htm

    IE4 or higher required tho.

    - J

    Michael K wrote in message <393fdd20$1@news.devx.com>...
    >
    >I want to download a file from a web site "exe or zip" and show a simple

    download
    >progress bar & text. Similar to the one we all see when IE downloads a

    file.
    >Bytes received / total [--- ] etc..
    >
    >The winsock activeX control seems to be useless for this. I can connect but
    >not download anything. The Internet transfer control will download a file
    >but you can NOT check the byte progress without stopping the transfer. I
    >prefer not to use a third party control. I'm sure this has to be possible
    >with plain old VB and the controls that come with it. (VB6 SP3)
    >
    >Any suggestions? An API solution is fine if it will work.
    >
    >Thanks,
    >Mike




  4. #4
    Raymond R Cassick Guest

    Re: Simple downlod progress!!??

    Thanks! I can't belive I have never found that!

    "Jay" <abpremier@beer.com.NOSPAM> wrote in message
    news:393fdf76$2@news.devx.com...
    > There's a really simple routine using about 5 lines of code here:
    >
    > http://www.mvps.org/vbnet/code/netwo...ledownload.htm
    >
    > IE4 or higher required tho.
    >
    > - J
    >
    > Michael K wrote in message <393fdd20$1@news.devx.com>...
    > >
    > >I want to download a file from a web site "exe or zip" and show a simple

    > download
    > >progress bar & text. Similar to the one we all see when IE downloads a

    > file.
    > >Bytes received / total [--- ] etc..
    > >
    > >The winsock activeX control seems to be useless for this. I can connect

    but
    > >not download anything. The Internet transfer control will download a file
    > >but you can NOT check the byte progress without stopping the transfer. I
    > >prefer not to use a third party control. I'm sure this has to be possible
    > >with plain old VB and the controls that come with it. (VB6 SP3)
    > >
    > >Any suggestions? An API solution is fine if it will work.
    > >
    > >Thanks,
    > >Mike

    >
    >




  5. #5
    Raymond R Cassick Guest

    Re: Simple downlod progress!!??

    Thanks! I can't belive I have never found that!

    "Jay" <abpremier@beer.com.NOSPAM> wrote in message
    news:393fdf76$2@news.devx.com...
    > There's a really simple routine using about 5 lines of code here:
    >
    > http://www.mvps.org/vbnet/code/netwo...ledownload.htm
    >
    > IE4 or higher required tho.
    >
    > - J
    >
    > Michael K wrote in message <393fdd20$1@news.devx.com>...
    > >
    > >I want to download a file from a web site "exe or zip" and show a simple

    > download
    > >progress bar & text. Similar to the one we all see when IE downloads a

    > file.
    > >Bytes received / total [--- ] etc..
    > >
    > >The winsock activeX control seems to be useless for this. I can connect

    but
    > >not download anything. The Internet transfer control will download a file
    > >but you can NOT check the byte progress without stopping the transfer. I
    > >prefer not to use a third party control. I'm sure this has to be possible
    > >with plain old VB and the controls that come with it. (VB6 SP3)
    > >
    > >Any suggestions? An API solution is fine if it will work.
    > >
    > >Thanks,
    > >Mike

    >
    >




  6. #6
    Michael K Guest

    Re: Simple downlod progress!!??


    I go to vbNet all the time and never saw that. Thanks!

    Mike

    "Jay" <abpremier@beer.com.NOSPAM> wrote:
    >There's a really simple routine using about 5 lines of code here:
    >
    >http://www.mvps.org/vbnet/code/netwo...ledownload.htm
    >
    >IE4 or higher required tho.
    >
    >- J
    >
    >Michael K wrote in message <393fdd20$1@news.devx.com>...
    >>
    >>I want to download a file from a web site "exe or zip" and show a simple

    >download
    >>progress bar & text. Similar to the one we all see when IE downloads a

    >file.
    >>Bytes received / total [--- ] etc..
    >>
    >>The winsock activeX control seems to be useless for this. I can connect

    but
    >>not download anything. The Internet transfer control will download a file
    >>but you can NOT check the byte progress without stopping the transfer.

    I
    >>prefer not to use a third party control. I'm sure this has to be possible
    >>with plain old VB and the controls that come with it. (VB6 SP3)
    >>
    >>Any suggestions? An API solution is fine if it will work.
    >>
    >>Thanks,
    >>Mike

    >
    >



  7. #7
    Michael K Guest

    Re: Simple downlod progress!!??


    I go to vbNet all the time and never saw that. Thanks!

    Mike

    "Jay" <abpremier@beer.com.NOSPAM> wrote:
    >There's a really simple routine using about 5 lines of code here:
    >
    >http://www.mvps.org/vbnet/code/netwo...ledownload.htm
    >
    >IE4 or higher required tho.
    >
    >- J
    >
    >Michael K wrote in message <393fdd20$1@news.devx.com>...
    >>
    >>I want to download a file from a web site "exe or zip" and show a simple

    >download
    >>progress bar & text. Similar to the one we all see when IE downloads a

    >file.
    >>Bytes received / total [--- ] etc..
    >>
    >>The winsock activeX control seems to be useless for this. I can connect

    but
    >>not download anything. The Internet transfer control will download a file
    >>but you can NOT check the byte progress without stopping the transfer.

    I
    >>prefer not to use a third party control. I'm sure this has to be possible
    >>with plain old VB and the controls that come with it. (VB6 SP3)
    >>
    >>Any suggestions? An API solution is fine if it will work.
    >>
    >>Thanks,
    >>Mike

    >
    >



  8. #8
    Arkangyl Guest

    Re: Simple downlod progress!!??


    "Michael K" <michael@qx.net> wrote:
    >
    >I want to download a file from a web site "exe or zip" and show a simple

    download
    >progress bar & text. Similar to the one we all see when IE downloads a file.
    >Bytes received / total [--- ] etc..
    >
    >The winsock activeX control seems to be useless for this. I can connect

    but
    >not download anything. The Internet transfer control will download a file
    >but you can NOT check the byte progress without stopping the transfer. I
    >prefer not to use a third party control. I'm sure this has to be possible
    >with plain old VB and the controls that come with it. (VB6 SP3)
    >
    >Any suggestions? An API solution is fine if it will work.
    >
    >Thanks,
    >Mike


    What you want to do is use the Inet Transfer control and the GetChuck Method.
    If you do it in chunks, you can do the loop and add a counter increment
    in the loop. Then you just assign the counter incrementing to the progress
    bar. I've used this with great success in an enterprise environment. Email
    me if you have any other questions.

    Ark


  9. #9
    Arkangyl Guest

    Re: Simple downlod progress!!??


    "Michael K" <michael@qx.net> wrote:
    >
    >I want to download a file from a web site "exe or zip" and show a simple

    download
    >progress bar & text. Similar to the one we all see when IE downloads a file.
    >Bytes received / total [--- ] etc..
    >
    >The winsock activeX control seems to be useless for this. I can connect

    but
    >not download anything. The Internet transfer control will download a file
    >but you can NOT check the byte progress without stopping the transfer. I
    >prefer not to use a third party control. I'm sure this has to be possible
    >with plain old VB and the controls that come with it. (VB6 SP3)
    >
    >Any suggestions? An API solution is fine if it will work.
    >
    >Thanks,
    >Mike


    What you want to do is use the Inet Transfer control and the GetChuck Method.
    If you do it in chunks, you can do the loop and add a counter increment
    in the loop. Then you just assign the counter incrementing to the progress
    bar. I've used this with great success in an enterprise environment. Email
    me if you have any other questions.

    Ark


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center