Hey there!
I have a problem and I think the Question Title is a bit misleading (sorry for that but I couldn't find a better title). But let me try to explain my problem best I can:
I have a class with one public function. The rest of the functions are all private. The main logic is all implemented in this public function. Let me just give u a small example in the attached code.
The problem is now that I want to use this class in a windows application and in that window form I want to use a progress bar.
I've implemented a timer on the form window which starts before I call the function and stops after the function call.
After each tick event I execute a PerformStep of the ProgressBar.
For my needs it works fine if the count of elements in my Array (array.count) is not too big. If it is bigger the function1 needs to much "CPU Power" and the timer event is not updated (this is what I guess)!
I hope you can understand my problem and would be glad if someone can help me.
Best Regards
Start Free Trial