I'm trying to do something that I have never done, I have an external class that does a lot of calculations (usually takes about 10 minutes to finish).
The iterations usually run from 0 to 100 000, so I would like to have a progress bar that iterates between those values on my main windows form. Also a new thread needs to be created since my windows form freezes until the calculation is finished.
If the calculations was done within my windows form code it would have been easy since I could have used a normal progress bar and the backgroundworker class for an extra thread. But I have an external class that I call, so I'm not sure how to pass data to my main windows form while the external class executes the code.
Please let me know if I'm not clear enough on what I want to do.
Any help would be appreciated.