You can do that in exactly same way as you do on main UI thread.
Basically this means you have to create Form and use Application.Run on it.
This will start separate message pump for your thread.
At the same time you must keep in mind that communication and
synchronization between UI threads is not so simple as when you have only
one UI thread. See Invoke/BeginInvoke methods for resp. controls and
threading topics in MSDN for .Net.
You can do that in exactly same way as you do on main UI thread.
Basically this means you have to create Form and use Application.Run on it.
This will start separate message pump for your thread.
At the same time you must keep in mind that communication and
synchronization between UI threads is not so simple as when you have only
one UI thread. See Invoke/BeginInvoke methods for resp. controls and
threading topics in MSDN for .Net.
The problem is that I have an ActiveX component created in VB, in which I
need to make several instances of the component in different threads. Is it
possible to instantiate a component without adding it to a form?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.