PDA

Click to See Complete Forum and Search --> : Help - If You Could


shragel
May 30th, 2001, 02:09 AM
I am using the FTPGETFILE API and would like to know how i could add a progress bar or show how much was already downloaded.

please help.

jim mcnamara
May 30th, 2001, 05:51 AM
Lose the FTPGETFILE api. One line does all of it.

[CODE]
Private Declare Function DoFileDownload Lib "shdocvw.dll" (ByVal lpszFile As String) As Long

Sub DownLoadwithDialog(strFile)

'strFile is an URL like http://www.vb-world.net/somewhere/bigdir/junk.zip
Call DoFileDownload(strFile)

End Sub
Try it - it brings up a dialog box just like you want.:D

shragel
May 30th, 2001, 07:31 AM
I cant use it because my program needs to wait until finished downloading.