I'm trying to show a progress bar on my main form, however the calculation that would update the form is in a separate class.
I have all the DoWork events and all on my main form code, and the call to the class where my calculation is done is within the DoWork, however I don't know how to trigger the form events within the class. Do you have to pass something by reference to the class object? I tried passing the BackgroundWorker itself but that didn't do anything.
Any ideas, or is this impossible?
I have all the DoWork events and all on my main form code, and the call to the class where my calculation is done is within the DoWork, however I don't know how to trigger the form events within the class. Do you have to pass something by reference to the class object? I tried passing the BackgroundWorker itself but that didn't do anything.
Any ideas, or is this impossible?