0

I have a zipping code where I need to provide a progressbar. I tried checking in internet about how to do it. but, I didnt get any answer for that.

Any suggestions to this will be highly appreciated.

Code for Zipping

label1.Text = "Compression started.";
ZipFile.CreateFromDirectory(destFolder, Backup + "\\VibrantBackup" + DateTime.Now.ToString("yyyyMMdd hh.mm.ss") + ".zip");
label1.Text = "Compression completed.";
DonMax
  • 970
  • 3
  • 12
  • 47
  • If you just search for `C# progress bar` you will instantly get at least 3 good results. – Mwigs Jul 21 '14 at 06:29
  • 1
    `ZipFile.CreateZipFromDirectory` does not support progress bar. Try to use some external library to do this stuff e.g. DotNetZip. Maybe it can help you – y0j0 Jul 21 '14 at 06:32
  • [Look this post](http://stackoverflow.com/questions/22976841/how-to-report-progress-while-creating-a-zip-file) – y0j0 Jul 21 '14 at 06:33
  • 1
    You are using `System.IO.Compression.ZipFile`? If so, I don't agree with the marked duplicate which is linking to a question about a completely different library. – Mike Zboray Jul 21 '14 at 07:11

0 Answers0