In windows application, I want in new thread to show form. How to do that? regard j
First import the System.Threading namespace VB Code: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim t As New Thread(AddressOf Me.MySub) t.Start() End Sub Sub MySub() Dim f As New Form1 f.ShowDialog() End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim t As New Thread(AddressOf Me.MySub) t.Start() End Sub Sub MySub() Dim f As New Form1 f.ShowDialog() End Sub
Forum Rules