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
Search This Blog
FREE AI Course and Paid One-on-One Coaching for learning AI, especially RAG, MCP, LangGraph and AI Agents
Read Newsletter posts including FREE offers
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