C# Tutorial - How to Download a File from Internet using C# | FoxLearn

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
welcome to foxlearn in this video i'll show you how to download a file from internet that supports pause and resume in c-sharp [Music] after you finish creating a new windows forms project you need to open your form designer then drag the button text box label and progress bar controls from the visual studio toolbox into your form designer you can design a simple ui that allows you to enter a url then download the file and display the download information on your form [Music] [Music] [Music] [Music] do [Music] next right click on your project then select manage nudged packages search and install alto http into your project alto http provides fast and easy download management files after you finish installing the alto http library you need to add a click event handler to the start button to help you download file we will use http downloader class to download a file from the url http downloader helps you manage file downloads including pausing and resuming file downloads you can create a simple form to help you configure the download path or just save the downloaded file to the applications directory [Music] you will also need to add the download completed and progress changed events to http downloader [Music] if you want to pause download files you can call the pause method otherwise call the resume method to resume download files [Music] you should use the invoke method to execute a delegate on the thread that owns the controls underlying window handle method invoker provides a simple delegate that is used to invoke a method with a void parameter list this delegate can be used when making calls to a controls invoke method or when you need a simple delegate but do not want to define one yourself [Music] if you want to update your download progress you can add your quote inside this event handler [Music] [Music] [Music] [Music] [Music] do [Music] do [Music] [Music] [Music] [Music] [Music] thank you for watching this video and don't forget to subscribe to my channel
Info
Channel: Fox Learn
Views: 44,863
Rating: undefined out of 5
Keywords: foxlearn, c#, .net, c# download file, c# download file from url, how to download a file from internet using c#, c# winforms, c# httpdownloader, c# download file from server, c# download file from url and save, c# download file from url to folder, c# download file from url and save to folder, c# download file from https, c# download file from https url, c# download file via https, c# download file over https, download file c#, c# download manager, c# file download pause resume
Id: CbKSh4OnCN8
Channel Id: undefined
Length: 11min 12sec (672 seconds)
Published: Fri Nov 06 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.