HighTechTalks DotNet Forums  

Arguments for constructor of ProgressChangedEventArgs

Dotnet General Discussions microsoft.public.dotnet.general


Discuss Arguments for constructor of ProgressChangedEventArgs in the Dotnet General Discussions forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Curious
 
Posts: n/a

Default Arguments for constructor of ProgressChangedEventArgs - 01-02-2008 , 11:41 AM






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"?

Reply With Quote
  #2  
Old   
sloan
 
Posts: n/a

Default Re: Arguments for constructor of ProgressChangedEventArgs - 01-02-2008 , 01:50 PM






http://msdn2.microsoft.com/en-us/lib...eventargs.aspx


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

"Curious" <fir5tsight (AT) yahoo (DOT) com> wrote

Quote:
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"?



Reply With Quote
  #3  
Old   
Curious
 
Posts: n/a

Default Re: Arguments for constructor of ProgressChangedEventArgs - 01-02-2008 , 02:46 PM



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

Reply With Quote
  #4  
Old   
sloan
 
Posts: n/a

Default Re: Arguments for constructor of ProgressChangedEventArgs - 01-02-2008 , 03:33 PM




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

i have no idea.

check the msdn documentation.




"Curious" <fir5tsight (AT) yahoo (DOT) com> wrote

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



Reply With Quote
  #5  
Old   
Curious
 
Posts: n/a

Default Re: Arguments for constructor of ProgressChangedEventArgs - 01-03-2008 , 11:53 AM



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

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.