Hi, i am in the middle of something and i need to set some timeout to abort a thread in the timeout. What i need is a way i can set a timeout with a callback function or sub that will be called when the specified time of the timeout elapse.
Here is a sample code to make things more clearer
Private Sub callbk()
Threading.Thread.Abort()
End Sub
Private Sub btn_start(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn_start.Click
myTimeout(5000, AddressOf callbk)
While True
End While
End Sub
so, i need help!