When using any loop such as while loop in C# application, repainting of application window/form won't happen properly. i-e The window will be displayed in blur manner.
To avoid this issue we need to use/call Application.DoEvents() within the while loop.
It will process all the window messages currently available in the message queue.
More Articles...
No comments:
Post a Comment