Controls created on one thread cannot be parented to a control on a different thread.
-
Hi i have a control,i'm adding a treeview to a control and then populating the treeview using a method called populatTreeviw().. i set up a timer to call the populatTreeviw() method every 1 min,in order to refresh the trwwview,i get the following error when the method is called,please help Controls created on one thread cannot be parented to a control on a different thread.
-
Hi i have a control,i'm adding a treeview to a control and then populating the treeview using a method called populatTreeviw().. i set up a timer to call the populatTreeviw() method every 1 min,in order to refresh the trwwview,i get the following error when the method is called,please help Controls created on one thread cannot be parented to a control on a different thread.
using delegates will help. you should define a delegate and invoke it to get the required result. there are a lot of articles on how to use delegates here in CP.
regards :)