|
-
Feb 19th, 2019, 02:14 PM
#1
Thread Starter
Frenzied Member
[RESOLVED] Passing multiple arguments to BackgroundWorker.ProgressChanged
I recently learned How to pass multiple parameters to a BackgroundWorker.DoWork method. I used an object created from a class I made to hold the parameters and passed it in the DoWorkEventArgs. Today I was attempting to do the same with the ProgressChanged. I've seen some examples online but it's not working for me. Is this a normal thing to do? I dont' want to jump though hoops to "make it work". If there is a normal and accepted way to do this, I'd like to know how. If MS never intended this to do more than passing text, then I'd rather keep doing it as I am.
As it is now I create a delimited string and split it using a method in a generic text class method of my design. It's just for simple things like whether the message overwrites the last line of a multi-line TextBox or not.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|