下载文件进度条
vb如何做 下载文件进度条?
物品现在是通过Inet下载
Sub downFile(url As String, ByVal SaveFileName As String)
Dim bytes() As Byte
' 把文件的字节读到一个Byte数组中
bytes() = Inet1.OpenURL(url, icByteArray)
' 得出文件名
Dim fName As String
Dim AppPath
AppPath = App.path
If Right$(AppPath, 1) <> "\" Then AppPath = AppPath & "\"
fName = SaveFileName
' 保存在C盘下
Open AppPath & fName For Binary Access Write As #1
Put #1, , bytes()
Close #1
End Sub
下载一个文件停留很长时间
(做了个假的进度条)
很容易让客户误解以为 不能更新了
怎么样做到 按照下载文件 的进度显示进度条?