Learn ASP.NET MVC, ASP.NET Core, and Design Patterns through our online training programs. Courses conducted by Bipin Joshi on weekends. Read more details here.

<%@ Page %>

Developing a Multi-threaded Downloader

Introduction

Developing multithreaded applications was always been a difficult task for average programmers. .NET allows creating such applications easily. In this code demo we will how to develop an application that downloads multiple files from web simultaneously.

What you will learn?

This demo illustrates following techniques:
  • How to use multithreading in .NET
  • How to use HttpWebRequest and HttpWebResponse classes to download a file over HTTP
  • How to write the data received to a file
  • How to use windows ListView control
  • How to refresh the ListView to reflect progress of the download
  • How to notify the client of completion using events

How to test and run the code

Following steps will help you to test and run the code:
  • Create a Windows Forms application in C# using VS.NET
  • Unzip supplied source code files in the application folder
  • Add the files in the VS.NET project
  • Compile the project
  • Run the project
  • Enter some URLs to download file from



Bipin Joshi is a software consultant, trainer, author and a yogi having 21+ years of experience in software development. He conducts online courses in ASP.NET MVC / Core, jQuery, AngularJS, and Design Patterns. He is a published author and has authored or co-authored books for Apress and Wrox press. Having embraced Yoga way of life he also teaches Ajapa Meditation to interested individuals. To know more about him click here.

Get connected : Twitter  Facebook  Google+  LinkedIn

Posted On : 17 May 2002



Tags : Windows Forms Multithreading Performance