-
I've got a VB5 program with a progress bar, displayed counters and a scrollable grid. The trouble is that even though the form has a minimize button, it will not minimize while the application is doing its work (and displaying the progress of that work with its progress bar and counters). Also, it will not allow the user to scroll the grid. How can I make the application minimizable and the grid scrollable while the application is processing data?
-
No problem, In key places in your data processing code insert the line DoEvents. This frees up the code thread so that windows can process its messages, make sure it's inserted into all For Next Loops etc.
Hope this helps
-
:) Doevents is really helpful, but use it with caution. Ending the program while in a loop causes the program wont close. :eek:
[Edited by kedaman on 03-19-2000 at 04:38 PM]