Wow thanks, I wasn't expecting this much

I think I understand most of it I'm just a little confused as to where it all goes in the program and I'm not sure if what I have done is right.
BTW the project is an patcher and version manager for minecraft. This part will download whatever version the user types into TextBox1, into the folder and name according to the version that it is. the files are normally around 3-5Mb
I have this bit for the download button:
Code:
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
Dim URL As String = "http://assets.minecraft.net/" + TextBox1.Text + "/minecraft.jar"
Dim Package As String = "C:\Users\" + SystemInformation.UserName + "\AppData\Roaming\.minecraft\bin\" + TextBox1.Text + ".jar"
wClient.DownloadFile(New Uri(URL), Package)
End Sub
Then I have these bits which I'm unsure about
:
Code:
Private WithEvents wClient As New WebClient()
Private Sub wClient_DownloadProgressChanged(ByVal sender As Object, ByVal e As System.Net.DownloadProgressChangedEventArgs) Handles wClient.DownloadProgressChanged
If Me.ProgressBar1.Maximum <> e.TotalBytesToReceive Then
Me.ProgressBar1.Maximum = e.TotalBytesToReceive
End If
Me.ProgressBar1.Value = e.BytesReceived
End Sub
Private Sub wClient_DownloadFileCompleted(ByVal sender As Object, ByVal e As System.ComponentModel.AsyncCompletedEventArgs) Handles wClient.DownloadFileCompleted
MessageBox.Show("File has finished downloading!", "Success: File Complete", MessageBoxButtons.OK, MessageBoxIcon.Information)
Me.ProgressBar1.Value = 0 'reset the progressbar
End Sub
When I download a file it downloads fine but the program becomes unresponsive while the download is in progress and the progress bar does not change and you don't get the message saying the download has finished but I'm sure that's just me getting things wrong.