Hey everyone! Whats the problem with this code? My progressbar isnt changed during the worker async, it only messages me on the final, and downloads the file. Thanks!
Code:Private Sub BackgroundWorker1_DoWork(sender As Object, e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork My.Computer.Network.DownloadFile("http://fusioncountry.tk/OMSZ.rar", "E:\Rockstar Games\GTA San Andreas\SAMP\omsz.rar") End Sub Private Sub BackgroundWorker1_ProgressChanged(sender As Object, e As ProgressChangedEventArgs) Handles BackgroundWorker1.ProgressChanged ProgressBar1.Value = e.ProgressPercentage End Sub Private Sub BackgroundWorker1_RunWorkerCompleted(sender As Object, e As RunWorkerCompletedEventArgs) Handles BackgroundWorker1.RunWorkerCompleted MessageBox.Show("Kész!") End Sub




Reply With Quote
