I want the backgroundworker to send back some custom information to the ProgressChanged event handler, but it seems that all it can send is an int.
Is there a way around this?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The ReportProgress has an overloaded method which takes in a UserState object which can be any object. You can pass anything that inherits the object class in and then parse it on your ProgressChanged event handler.
http://msdn.microsoft.com/en-us/library/system.windows.forms.toolstripprogressbar.aspx