473,396 Members | 1,982 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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"?
Jan 2 '08 #1
3 1713
http://msdn2.microsoft.com/en-us/lib...eventargs.aspx
new ProgressChangedEventArgs( 50 , null );That would be 50%

"Curious" <fi********@yahoo.comwrote in message
news:26**********************************@x69g2000 hsx.googlegroups.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"?

Jan 2 '08 #2
Thanks! What's the difference between this "ProgressChanged" and
"ReportProgress"? It seems that they are both used to update the
progression bar.
Jan 2 '08 #3
Thanks again! I've got the info about the arguments on your link.
Jan 3 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Matt Eberts | last post by:
Sorry, bad title. Anyway, is there a way to pass the arguments to an object instantiated via a constructor using the arguments object and have it expanded, so to speak, so that it doesn't appear as...
11
by: The Directive | last post by:
This code will not compiled: In main function: Dot temp = new Dot( *(new Point( 5, 5 )) ); In Dot class: //Constructor with default arguments. Dot::Dot( Point& point= *(new Point( 5, 5...
1
by: Clinton Pierce | last post by:
I've got a class that I want to access remotely. The touble is, I can't figure out how to call the constructor of the class with arguments -- and the arguments are necessary to initialize the...
1
by: Allan Ebdrup | last post by:
I have the following class in C# with two constructors -------------- public class JobfolderEmailRecord { public JobfolderEmailRecord(int Id) { //code for constructor } public...
3
by: Richard Bysouth | last post by:
Hi In my app I'm using a BackgroundWorker component to execute a long-running task - updating a progress on my form fine. However, I'd like to provide more information to that form while the...
41
by: Telmo Costa | last post by:
Hi. I have the following code: -------------------------------------- function Tunnel() { //arguments(???); } function Sum() { var sum = 0; for (i=0; i<arguments.length; i++) sum +=...
16
by: utab | last post by:
Dear all, How can I generate a constructor to take a variable number of arguments. Is boost tuple appropriate for this? I know that there is a way to make functions take variable number of...
36
by: Pacific Fox | last post by:
Hi all, haven't posted to this group before, but got an issue I can't work out... and hoping to get some help here ;-) I've got a base object that works fine with named arguments when called...
3
by: saxenavaibhav17 | last post by:
Actually at some place I am creating object of outcome class. its taking five argument. i don't want to give 3 and 4 th argument. i want to give 1,2 and 5 th argument. Outcome...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.