No idea, I think it's to prevent data corruption and/or thread locking
Edit:
Quote:
|
Originally Posted by http://msdn.microsoft.com/en-us/library/ms171728%28v=vs.80%29.aspx
Access to Windows Forms controls is not inherently thread safe. If you have two or more threads manipulating the state of a control, it is possible to force the control into an inconsistent state. Other thread-related bugs are possible as well, including race conditions and deadlocks. It is important to ensure that access to your controls is done in a thread-safe way.
|
So, it's not about data corruption anyways. I think it's pretty stupid though, I mean adding an item to a listbox or changing the title of a label in a seperate thread shouldn't be a problem if you know what you're doing - I'm pretty sure those things just use the PostMessage (or SendMessage) function anyways which is completely thread-safe. Microsoft is shit.