Updating Windows Form UI elements from another thread

Premier Developer

Premier

This post is from App Dev Manager, Omer Amin who covers how to update Windows Form UI elements using worker threads.


cross-thread-exceptionIn a typical Windows Forms .NET application, the UI elements are created and updated by the main thread. This thread is also responsible for processing Windows messages. For this reason, it is recommended to keep message processing short and simple. Long running operations performed on this thread will cause incoming Windows messages to queue up. If messages don’t get processed in a timely manner, the application will appear hung to the user and provide a poor user experience.

Continue on Omer’s personal blog.


Premier Support for Developers provides strategic technology guidance, critical support coverage, and a range of essential services to help teams optimize development lifecycles and improve software quality.  Contact your Application Development Manager (ADM) or email us to learn more about what we can do for you.

Premier Developer
Premier Developer

Premier Support for Developers

Follow Premier   

No Comments.