Imports system.net
Public Class Form1
Private Sub cmdsave_Click(sender As Object, e As EventArgs) Handles cmdsave.Click
SaveFileDialog.Filter = "All files (*.*)|*.*"
''"EXE (*.exe) |*.exe |JPEG (*.jpg)|*.jpg | MP3 (*.mp3)|*.mp3 | WAV (*.wav) |*.wav ";
SaveFileDialog.ShowDialog()
TextBox2.Text = SaveFileDialog.FileName
End Sub
Public WithEvents download As WebClient
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
download = New WebClient
download.DownloadFileAsync(New Uri(TextBox1.Text), TextBox2.Text)
End Sub
Private Sub download_DownloadProgressChanged(sender As Object, e As DownloadProgressChangedEventArgs) Handles download.DownloadProgressChanged
ProgressBar1.Value = e.ProgressPercentage
End Sub
End Class
I'm trying to make a downloader but I keep getting an error with the SaveFileDialog area. I am a newbie with VB.Net and I'm wondering what i need to change to make it work and successfully download all type of files.