Updating listbox using a thread in orthodox dating rules
NET Framework 2.0 Background Worker class makes it easy to code simple threading into your applications.
First, we disable the start button and enable the cancel button.
Next we reset the values for our listbox and and progressbar. All it’s doing is looping 100 times and reporting the progress and sleeping 100ms between iterations. You can also see that in the Report Progress function call that we’re passing in the current value and a string.