Saturday, May 16, 2009

Use of Application.DoEvents method in C# Application.

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:

Search This Blog