|
-
Jul 12th, 2002, 03:53 AM
#1
How can I load a second form through multi threading?
I've never tried to do multi threading and I have no clue how to do it... I tried to find different sample codes, but none of them worked for a form
basically I want to load a form within another form, but I want the second form to run on a separate thread...
can anyone help ?
-
Jul 12th, 2002, 08:59 AM
#2
Member
I'm no expert at multithreading, but I think if you just start a new form with a thread then it will be part of that thread.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim stuff As System.Threading.Thread = New System.Threading.Thread(AddressOf newthread)
stuff.Start()
End Sub
Private Sub newthread()
Dim form2 As New Form2()
form2.ShowDialog()
End Sub
Please excuse the code syntax, but I think you get the point
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|