Arguments for constructor of ProgressChangedEventArgs

Arguments for constructor of ProgressChangedEventArgs

am 02.01.2008 17:41:45 von Fir5tSight

Hi,

I use background worker, and I have an event handler,
"WorkProgressChanged" to launch an update of UI controls when the
progress is changed in the background work:

if(WorkProgressChanged != null)
WorkProgressChanged(this, new
ProgressChangedEventArgs(\\ what arguments to use here????));

Anyone can tell me what arguments to use in constructing a
"ProgressChangedEventArgs"?

Re: Arguments for constructor of ProgressChangedEventArgs

am 02.01.2008 19:50:17 von sloan

http://msdn2.microsoft.com/en-us/library/system.componentmod el.progresschangedeventargs.progresschangedeventargs.aspx


new ProgressChangedEventArgs( 50 , null );That would be 50%

"Curious" wrote in message
news:260b2420-f5ef-40ae-bfd3-4d478374ae30@x69g2000hsx.google groups.com...
> Hi,
>
> I use background worker, and I have an event handler,
> "WorkProgressChanged" to launch an update of UI controls when the
> progress is changed in the background work:
>
> if(WorkProgressChanged != null)
> WorkProgressChanged(this, new
> ProgressChangedEventArgs(\\ what arguments to use here????));
>
> Anyone can tell me what arguments to use in constructing a
> "ProgressChangedEventArgs"?

Re: Arguments for constructor of ProgressChangedEventArgs

am 02.01.2008 20:46:57 von Fir5tSight

Thanks! What's the difference between this "ProgressChanged" and
"ReportProgress"? It seems that they are both used to update the
progression bar.

Re: Arguments for constructor of ProgressChangedEventArgs

am 02.01.2008 21:33:19 von sloan

//What's the difference between this "ProgressChanged" and
> "ReportProgress"? //


i have no idea.

check the msdn documentation.




"Curious" wrote in message
news:de62d0e3-8cd7-4c9c-8fc7-857c0be0a08c@1g2000hsl.googlegr oups.com...
> Thanks! What's the difference between this "ProgressChanged" and
> "ReportProgress"? It seems that they are both used to update the
> progression bar.

Re: Arguments for constructor of ProgressChangedEventArgs

am 03.01.2008 17:53:41 von Fir5tSight

Thanks again! I've got the info about the arguments on your link.