Hallo Forum
beim download geht die progressbar nicht mit sie lädt sich erst wenn die datei schon am pc ist
Danke
PS: Vl. hat noch jemand nen code der mir die kb´s angibt der datei angibt und die schon gedownloaded wurden
beim download geht die progressbar nicht mit sie lädt sich erst wenn die datei schon am pc ist
VB.NET-Quellcode
- Option Strict On
- Imports System.Net
- Public Class Database_Load
- WithEvents WebCilient As New Net.WebClient
- Private Sub Database_Load_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
- Try
- WebCilient = New WebClient
- WebCilient.Credentials = New Net.NetworkCredential(" ", " ")
- Dim Uri As New Uri("ftp://sami41194.sa.funpic.de/Test.mp3")
- WebCilient.DownloadFileAsync(Uri, My.Application.Info.DirectoryPath & "\Test.mp3")
- Catch ex As Exception
- MsgBox(ex.ToString)
- End Try
- End Sub
- Private Sub WebCilient_DownloadProgressChanged(ByVal sender As Object, ByVal e As System.Net.DownloadProgressChangedEventArgs) Handles WebCilient.DownloadProgressChanged
- ProgressBar1.Value = e.ProgressPercentage
- End Sub
- End Class
Danke
PS: Vl. hat noch jemand nen code der mir die kb´s angibt der datei angibt und die schon gedownloaded wurden
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von „Sami41194“ ()