January 2018 : Instructor-led Online Course in ASP.NET Core 2.0. Conducted by Bipin Joshi. Read more...
Registration for January 2018 batch of ASP.NET Core 2.0 instructor-led online course has already started. Conducted by Bipin Joshi. Register today ! Click here for more details.

<%@ 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, an author and a yoga mentor having 22+ years of experience in software development. He also conducts online courses in ASP.NET MVC / 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