I have a button in a winform and on clicking which there will be some processing for say 5s.
during this process, I want to update the progress(ProgressBar) to UI with the % of work completed.
How to do this using Events & Delegates?
Other approaches(other than Events & Delegates) are also welcomed..
Pseudo code below. I don’t have the compiler at hand so the actual ProgressBar interface could differ slightly from what I remember.