Threading a form

  • Thread starter Thread starter Adam Honek
  • Start date Start date
A

Adam Honek

In VB.Net we have nice simple threading as follows:

Thread1 = New Threading.Thread(AddressOf DoSomething)

The only problem so far I've come across is that the addressof must be a
pointer
to a sub. It won't accept a form.

My question is how do I thread a form. It does not need to have control of
other
forms in other threads at this stage.

Thanks,
Adam
 
Adam said:
My question is how do I thread a form. It does not need to have control of
other
forms in other threads at this stage.

Someone please correct me if I'm wrong, but will below not work?

Private Sub LaunchForm()
Dim NewForm As New Form1
Form1.Show()
End Sub

....and pointing addressof here.
 
Back
Top