[TUT]Make an Advanced File Downloader - Printable Version +- Support Forums (https://www.supportforums.net) +-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87) +--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18) +---- Forum: Visual Basic and the .NET Framework (https://www.supportforums.net/forumdisplay.php?fid=19) +---- Thread: [TUT]Make an Advanced File Downloader (/showthread.php?tid=16224) |
[TUT]Make an Advanced File Downloader - ThePrinCe - 02-17-2011 Advanced File Downloader Ok Heres the TUT. 1.Make a new project named Advanved file downloader. 2.Add 2 buttons, a textbox, and a progress bar. 3.Name one button "Save As",and the other "Download" 4.Double click Save As and paste this code. Code: Dim save AsNew SaveFileDialog 5.Double click Download and paste this code. Code: httpclient = New WebClient 6.Now after the "end sub" of that code paste: Code: PrivateSub httpclient_DownloadProgressChanged(ByVal sender AsObject, ByVal e As System.Net.DownloadProgressChangedEventArgs) Handles httpclient.DownloadProgressChanged Note: This is the download percent 7.Now above PublicClass Form1 paste : Code: Imports System.Net 8.No under public class form 1 paste: Code: PrivateWithEvents httpclient As WebClient The CODE : Code: Imports System.Net thank's to jommla for fixing it . |