Dynamically Create Controls on a Windows Form in an Event
Posted on 2004-04-14
I have an event which fires any time something is added to a collection. On that event, I want to create a new control and add it to my form. However, when I try an exception is thrown stating
"Controls created on one thread cannot be parented to a control on a different thread."
Anybody know any workarounds or other ways to create these controls dynamically?