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...
Saturday, May 16, 2009
Use of Application.DoEvents method in C# Application.
Labels:
C#
Related Posts
- Deleting Session Cookie in Webbrowser control.
- Reverse Auction and finding best price among multiple Suppliers using C#.net
- Free online Quiz for learning php, javascript, mysql, testing, qtp and c#
- Doing case insensitive search in C#.Net
- C# - Performance difference between use of Datatable and use of external database
Search This Blog
Get an AI course for just Rs 300 ($8) - A free option is also available

AI Course | Bundle Offer | Unlocking AI | Dream Big | Listen to Dream Big
Today's Deals | Timesheet | Products | SQL ebook | Earn 50% commission
About | Privacy | Follow | TOS | WhatsApp | Contact
I may earn a commission from Amazon affiliate links
No comments:
Post a Comment