Kriya and Meditation for Software / IT Professionals. Conducted by Bipin Joshi in Thane. Read more...
Learn ASP.NET MVC, ASP.NET Core and ASP.NET Design Patterns. Courses conducted by Bipin Joshi on weekends. 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 Meditation and Mindfulness 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