I have code like below:
Quote:
Private Sub btnConnect_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnConnect.Click
Try
DO something
Dim th1 As New Thread(AddressOf ThreadStart)
th1.IsBackground = True
'End If
th1.Start()
Catch ex As Exception
DO something
End Try
End Sub When I click Button, as thread starts by th1.start, it starts thread without ending btnConnect_Click.
It starts thread, executes few statements of "ThreadStart" and then come b ...
Go to the complete details ...