VISUAL BASIC PROBLEM | |||
Problem Code | VBPBGEN002 | ||
Description |
sometime , when processing, my program stops responding. | ||
VB Version Compatibility |
This solution is tested in VB6 and expected to work in VB5 and VB4. | ||
Theory |
So many times you experience a situation that your program stops responding to :
Most of the time this happens due to lengthy process run by your program. Sometime we can not intervene the process and we have not alternative but to wait till process finishes. But we can intervene some lengthy process using <DoEvent> Keyword. <DoEvent> keyword gives Window-Operating-System a opportunity to respond to other events. But bottleneck to this approach is that it increase the process time because it stops the process respond to other event and resume the process. | ||
Solution/Example |
NOTE :- Please read <DoEvents> in VB help to know in detail advantage / disadvantage of this technique. |
--------------------X-X-X-X-X-X-X-X--------------------
SPECIAL NOTE :- This tip is tested thoroughly. Use this tip is your own risk. Visual Code is not responsible for any damage caused directly or indirectly. |