G
Guest
Hi,
I have two buttons, one is to start a process, another is to cancel the
process. Wehn I canceled a process, there is an alert message popped up. I'd
like to know how to avoid this popup.
thanks in advance
Private Shared tdSearch As Thread
Private Sub btnSearchNow_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnSearchNow.Click
tdSearch = New Thread(AddressOf MyProcess)
tdSearch.IsBackground = True
tdSearch.Start()
End Sub
Private Sub btnStopSearch_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnStopSearch.Click
tdSearch.Abort()
End Sub
I have two buttons, one is to start a process, another is to cancel the
process. Wehn I canceled a process, there is an alert message popped up. I'd
like to know how to avoid this popup.
thanks in advance
Private Shared tdSearch As Thread
Private Sub btnSearchNow_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnSearchNow.Click
tdSearch = New Thread(AddressOf MyProcess)
tdSearch.IsBackground = True
tdSearch.Start()
End Sub
Private Sub btnStopSearch_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnStopSearch.Click
tdSearch.Abort()
End Sub