Arguments for constructor of ProgressChangedEventArgs
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
http://msdn2.microsoft.com/en-us/library/system.componentmod el.progresschangedeventargs.progresschangedeventargs.aspx
new ProgressChangedEventArgs( 50 , null );That would be 50%
"Curious" <fir5tsight [at] yahoo.com> wrote in message
news:260b2420-f5ef-40ae-bfd3-4d478374ae30 [at] 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
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
//What's the difference between this "ProgressChanged" and
> "ReportProgress"? //
i have no idea.
check the msdn documentation.
"Curious" <fir5tsight [at] yahoo.com> wrote in message
news:de62d0e3-8cd7-4c9c-8fc7-857c0be0a08c [at] 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
Thanks again! I've got the info about the arguments on your link.