April 2018 : Instructor-led Online Courses in ASP.NET MVC / Core and Design Patterns Read more...
Registration open for April 2018 batches of ASP.NET MVC and Design Patterns instructor-led online courses. Conducted by Bipin Joshi on weekends. Register today ! Click here for more details.

<%@ Page %>

Developing a Multi-threaded Downloader


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 yoga mentor having 22+ years of experience in software development. He also conducts online courses on ASP.NET MVC, ASP.NET Core and Design Patterns. He is a published author and has authored or co-authored books for Apress and Wrox press. Having embraced the Yoga way of life he also teaches Ajapa Yoga 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