Threading a form

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
 
W

Winger

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.
 

Ask a Question

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.

Ask a Question

Similar Threads


Top