To download files from the internet we are gonna use a .net object called WebClient.
C#:
System.Net.WebClient client = new System.Net.WebClient(); client.DownloadFile("http://site.com/files/file.zip", "downloads/files.zip");
VB:
Dim client As new System.Net.Webclient() client.DownloadFile("http://site.com/files/file.zip", "downloads/files.zip")
Pretty easy, isn't it? The first parameter is the url of the file to download, the second one is where you want to save it, as the name of the file to save, in this example it will save it in a folder called donwloads, and with the same name.
Now, lets make an easy example with Visual Basic. Open Visual Basic 2008 Express Edition, and make a new project. Name it as you wish, and drag 2 textareas, 1 button and 1 label. Make it look like this
Now, double click in the button, and add this code
Dim client As New System.Net.WebClient() Try client.DownloadFile(TextBox1.Text, TextBox2.Text) Catch ex As Exception MsgBox(ex.ToString()) End Try