0
使用下面的事件怎麼會顯示一個文件剩餘的總時間 轉移進度條工作正常,但我想顯示 剩餘時間的金額以及如果可能的話總EST下載時間
Private Sub onTransferProgress(ByVal source As String, ByVal destination As String, ByVal transferredBytes As Integer, ByVal totalBytes As Integer, ByVal message As String) Handles transfer.onTransferProgress
Dim totalbytess As Long = transferredBytes/1024
Dim mtotalbytes As Long = totalbytess/1024
Dim status As String = ""
status = status & " Transfering Files - transferred: " & source & " to " & destination
Me.ProgressBar1.Value = transferredBytes
status = status & "Transferring.. " & (ProgressBar1.Value/1024).ToString()
Me.tbStatus.Text = status
lblWorking.Text = message
lblWorking.Visible = True
End Sub
http://xkcd.com/612/ –