Click here to Skip to main content
15,918,742 members
Home / Discussions / C#
   

C#

 
AnswerRe: text alignment problem on the image.... [modified] Pin
Nivas8228-May-10 19:31
Nivas8228-May-10 19:31 
AnswerRe: text alignment problem on the image.... Pin
Nivas8230-May-10 22:37
Nivas8230-May-10 22:37 
QuestionUnable to figure out a proper subject line. Sorry. :( Pin
dashingsidds23-May-10 23:41
dashingsidds23-May-10 23:41 
AnswerRe: Unable to figure out a proper subject line. Sorry. :( Pin
Richard MacCutchan23-May-10 23:51
mveRichard MacCutchan23-May-10 23:51 
GeneralRe: Unable to figure out a proper subject line. Sorry. :( Pin
dashingsidds24-May-10 0:40
dashingsidds24-May-10 0:40 
GeneralRe: Unable to figure out a proper subject line. Sorry. :( Pin
Richard MacCutchan24-May-10 1:26
mveRichard MacCutchan24-May-10 1:26 
GeneralRe: Unable to figure out a proper subject line. Sorry. :( Pin
PIEBALDconsult24-May-10 4:32
mvePIEBALDconsult24-May-10 4:32 
GeneralRe: Unable to figure out a proper subject line. Sorry. :( Pin
dashingsidds24-May-10 18:43
dashingsidds24-May-10 18:43 
GeneralRe: Unable to figure out a proper subject line. Sorry. :( Pin
PIEBALDconsult25-May-10 2:40
mvePIEBALDconsult25-May-10 2:40 
AnswerRe: Unable to figure out a proper subject line. Sorry. :( Pin
Pete O'Hanlon24-May-10 0:25
mvePete O'Hanlon24-May-10 0:25 
GeneralRe: Unable to figure out a proper subject line. Sorry. :( Pin
dashingsidds24-May-10 0:43
dashingsidds24-May-10 0:43 
GeneralRe: Unable to figure out a proper subject line. Sorry. :( Pin
Pete O'Hanlon24-May-10 0:49
mvePete O'Hanlon24-May-10 0:49 
AnswerRe: Unable to figure out a proper subject line. Sorry. :( Pin
Łukasz Nowakowski24-May-10 0:51
Łukasz Nowakowski24-May-10 0:51 
AnswerRe: Unable to figure out a proper subject line. Sorry. :( Pin
Abhinav S24-May-10 1:40
Abhinav S24-May-10 1:40 
AnswerRe: Unable to figure out a proper subject line. Sorry. :( Pin
Kunal Chowdhury «IN»24-May-10 2:38
professionalKunal Chowdhury «IN»24-May-10 2:38 
AnswerRe: Unable to figure out a proper subject line. Sorry. :( Pin
Luc Pattyn24-May-10 4:49
sitebuilderLuc Pattyn24-May-10 4:49 
GeneralRe: Unable to figure out a proper subject line. Sorry. :( Pin
dashingsidds24-May-10 18:31
dashingsidds24-May-10 18:31 
GeneralRe: Unable to figure out a proper subject line. Sorry. :( Pin
Luc Pattyn24-May-10 18:40
sitebuilderLuc Pattyn24-May-10 18:40 
GeneralRe: Unable to figure out a proper subject line. Sorry. :( Pin
dashingsidds24-May-10 18:58
dashingsidds24-May-10 18:58 
GeneralRe: Unable to figure out a proper subject line. Sorry. :( Pin
Luc Pattyn24-May-10 19:05
sitebuilderLuc Pattyn24-May-10 19:05 
GeneralRe: Unable to figure out a proper subject line. Sorry. :( Pin
dashingsidds24-May-10 19:23
dashingsidds24-May-10 19:23 
QuestionUsing Handler to Track Progress Pin
EvanSaunders23-May-10 22:16
EvanSaunders23-May-10 22:16 
Hi All

I downloaded a library to compress files into zip archives...
I am now trying to add an event handler (or any other type of handler) that will monitor the progress of the compression.

This is the code to compress the files: (I have marked where I am having difficulty)

using (ZipFile zip = new ZipFile())
{
  zip.CompressionLevel = Ionic.Zlib.CompressionLevel.BestCompression;
  ZipEntry e = zip.AddFile(ex1);
  e = zip.AddFile(ex2);
  zip.AddProgress += new ProgressChangedEventHandler(saveProgress);  //error occurs here
  zip.Save(compressedFile);
}


This is the code to track the changes:

private void saveProgress(Object sender, SaveProgressEventArgs e)
{
  switch (e.EventType)
  {
    case ZipProgressEventType.Saving_Completed:
      Console.WriteLine("Save Complete");
      sendFile("Compressed/Package.zip");
      break;
    case ZipProgressEventType.Saving_Started:
      Console.WriteLine("Saving Started...");
      break;
    default:
      Console.WriteLine("Saving...");
      break;
   }
}


I am not sure how to go about adding an eventhandler to the zip to monitor the progress.

Thanks for all those who can assist!
AnswerRe: Using Handler to Track Progress Pin
Łukasz Nowakowski23-May-10 22:30
Łukasz Nowakowski23-May-10 22:30 
GeneralRe: Using Handler to Track Progress Pin
EvanSaunders23-May-10 22:32
EvanSaunders23-May-10 22:32 
AnswerRe: Using Handler to Track Progress Pin
Łukasz Nowakowski23-May-10 22:39
Łukasz Nowakowski23-May-10 22:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.