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"?
Fir5tSight [ Mi, 02 Januar 2008 17:41 ] [ ID #1897762 ]

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"?
sloan [ Mi, 02 Januar 2008 19:50 ] [ ID #1897767 ]

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.
Fir5tSight [ Mi, 02 Januar 2008 20:46 ] [ ID #1897768 ]

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.
sloan [ Mi, 02 Januar 2008 21:33 ] [ ID #1897771 ]

Re: Arguments for constructor of ProgressChangedEventArgs

Thanks again! I've got the info about the arguments on your link.
Fir5tSight [ Do, 03 Januar 2008 17:53 ] [ ID #1898592 ]
Microsoft » microsoft.public.dotnet.general » Arguments for constructor of ProgressChangedEventArgs

Vorheriges Thema: C# (float) cast is costly for speed if not used appropriately
Nächstes Thema: Changing project references programmatically