Display progress bar/popup screen
I have written a code which is taking a quite longer to load, so the application hangs at that time. I want a progressbar or a popup screen showing the status need to be displayed as a model dialog until the background load completes.
Thanks,
Idris Gani R
Re: Display progress bar/popup screen
The problem is that when you do a modal dialog it stops other code from executing. You would need to call your code that does this load from with the modal dialog. I sometimes do this with a timer on the dialog form.
For example I may set the timer to an interval of 100 just to give the modal form time to load and draw then when the timer fires I disable the timer and call my load routine, updating the progress bar according to the progress.
Re: Display progress bar/popup screen
Code:
formProgress.Show vbModeless, Me
Will keep the form (formProgress) on top of the calling form but not interrupt the calling forms execution of code, which means you could then change the value of the progress bar on formProgress thus...
Code:
formProgress.ProgressBar1.Value = SomeNewValue
Good Luck