I've got a form w/a bizobj on it. The form displays the results of the calculations the bizobj performs. Since it can take up to 10 seconds to do all the calculations, I decided to add a progress bar.
I created a new modal form and dropped on the OLE progressbar control. In the main form I call the progressbar form and pass a reference to the main form.
The progressbar form calls my bizobj and starts the calculation. I added a method to the bizobj called Progress that changes (from 0 to 100) as the calculations take place. In my ProgressBarForm I also have a timer control that fires every 20ms. It reads the Progress value from the main bizobj and updates the Progressbar.Value. Once ProgressBar.Value >= 100 the form releases itself and the main form displays all the info.
The problem I'm having is that the progressbar never actually displays any progress. Right before it releases itself I see it jump to 100%, then the form releases. It looks like my timer function is suspended until the main bizobj is finished. Any way around this? Or a different way to approach this problem?