Click here to Skip to main content
16,005,037 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to resolve the "Cross-thread operation not valid: Control 'comboBoxWeb' accessed from a thread other than the thread it was created on." problem?
Posted
Updated 22-Nov-11 0:39am
v2

Your code is trying to access a UI element in a different thread; this is not allowed in C#. Keep all your UI code in the thread where the control is created and use background threads for other purposes. Some comments and suggestions may be found here[^].
 
Share this answer
 
Comments
RaisKazi 22-Nov-11 7:27am    
Agree, 5ed.

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900