
Signature
Regards,
Dmytro Lapshyn [MVP]
http://blogs.vbcity.com/DmytroL
Thanx Dmytro,
This is basically the question - how to ensure that 2nd form being created
in worker thread?
If we are talking abt a control - it is easy - whatever thread it is - you
test InvokeRequired etc.
I am trying to find similar way (abstracted solution which works in every
case) to create form.
Shall I create 2nd form in main form and pass it back to the wrapper classes?
Vlad
> Hi,
>
> Can it be that you construct the second form on a worker thread?
>
> The Invoke method can also be tricky - make sure that the control on which
> you call Invoke was created on the main UI thread.
Dmytro Lapshyn [MVP] - 26 Jul 2006 14:45 GMT
Yes, creating forms explicitly on the main thread is definitely a good idea.
However, you can pass a reference around safely only if you always pay
attention to the InvokeRequired property.

Signature
Regards,
Dmytro Lapshyn [MVP]
http://blogs.vbcity.com/DmytroL
> Thanx Dmytro,
>
[quoted text clipped - 19 lines]
>> which
>> you call Invoke was created on the main UI thread.