Home All Groups Group Topic Archive Search About
Author
20 Apr 2006 1:09 AM
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

Author
20 Apr 2006 1:23 AM
Winger
Adam Honek wrote:

> 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.

--
Greets,
Arkadiusz 'Winger' Slusarczyk
Republic of Ireland