A step by step tutorial teaching you how to create your own chat client and chat server easily in C#, for local networks or the Internet.
A C# tutorial showing you how to make use of WMI to extract information on disk drives, such as model, capacity, sectors and serial number.
This tutorial will teach you how to calculate the shipping cost based on the weight, height, length and depth of the box, the distance and the UPS service type.
Using WebClient to download a file
How to use the WebClient class to download a file from the Web and save it to a local path on your computer.
On Tuesday, June 22nd 2004 at 08:31 AM
By Andrew Pociu (View Profile)
(Rated 4.5 with 31 votes)
WebClient is a class that provides you with methods for sending and receiving data. That means you can download files from the web and save them using this class.
Here at Geekpedia we like to have a hands-on approach, so let's create a Windows Application project in Visual C# .NET.
Add to the form two textBoxes named downloadURL and savePath. Also add a button named btnDownload with the caption Download. If you want you can also add a label above each textBox containing the text 'URL to download from:' and 'Path to save to:', because that's what the textBoxes are about.
There's not much to say about this code because it's
|Digg It! Del.icio.us Reddit StumbleIt Newsvine Furl BlinkList|
Rate this tutorial
There are no related tutorials.
Related Source Code
There is no related source code.
C# Job Search