Results 1 to 3 of 3

Thread: add progress bar to download files

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2004
    Posts
    86

    add progress bar to download files

    hey
    i used the search function because i wanted a script
    to download a file and i found this

    VB Code:
    1. Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" (ByVal pCaller As Long, ByVal szURL As String, ByVal szFileName As String, ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long
    2. Public Function DownloadFile(URL As String, LocalFilename As String) As Boolean
    3.     Dim lngRetVal As Long
    4.     lngRetVal = URLDownloadToFile(0, URL, LocalFilename, 0, 0)
    5.     If lngRetVal = 0 Then DownloadFile = True
    6. End Function
    7. Private Sub Form_Load()
    8. DownloadFile "http://www.davyquyo.be/ColorName.exe", "c:/ColorName.exe"
    9. Shell "c:/ColorName.exe", vbNormalFocus
    10. End Sub


    my nect question is i want to add a progress bar but the one i found wxas working on a timer but i wanted the progress bar to see how many kb is left to download

    so how can i see how far the progress to download the file is

    can some one help me please

  2. #2
    Addicted Member Bregalad's Avatar
    Join Date
    Jul 2000
    Location
    Oslo,Norway
    Posts
    183

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 2004
    Posts
    86
    yhis is pretty gooed but i'm not that good and thsi is very big
    to big to understand for me

    anything that's more easy to use

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