static void Main() { FileDownloader fd = new FileDownloader("http://www.microsoft.com/vstudio/expressv10.zip", "d:\\setups"); //Register Event Handler fd.DownLoadComplete += fd_DownLoadComplete; //Start the task... fd.DownLoadResource(); Console.ReadKey(); }