Results 1 to 2 of 2

Thread: How can I load a second form through multi threading?

  1. #1

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    Question 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 ?

  2. #2
    Member
    Join Date
    Jul 2002
    Posts
    49
    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
  •  



Click Here to Expand Forum to Full Width