Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27311

VS 2008 Controls created on one thread cannot be parented to a control on a different thread.

$
0
0
Hi,

I create a control at runime. For this tool it needs to be threaded to create many controls for the purpose of the tool.

Anyways i use threadpool to create the controls but keep getting this error:
Controls created on one thread cannot be parented to a control on a different thread.

this is on the line Me.Controls.Add(thecontrol)

Its a threadpool to, not a created thread in the sub

Thanks for any help

Viewing all articles
Browse latest Browse all 27311

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>