Click here to Skip to main content
15,891,597 members
Articles / Programming Languages / Visual Basic

Set Windows Forms Control Properties Safely from ANY Thread

Rate me:
Please Sign up or sign in to vote.
5.00/5 (5 votes)
30 Aug 2022CPOL3 min read 5.5K   8  
A class you can add to your project, which allows you to set control properties safely from threads other than the main thread
If you are developing in Windows Forms, and your project also employs the use of separate threads, here is a class that can save you a lot of coding when you need to set a property on a control on a form, but from another thread.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Binary Meld Communications
Canada Canada
Started programming the Apple II+, then Mac, then Windows.
Still love the creation / invention process.

Comments and Discussions