C Chad Aug 21, 2003 #1 Is there a way to retrieve the thread ID in Visual Basic.NET after you have started the thread?
T Tom Spink Aug 21, 2003 #2 There isn't a managed way of doing this, so, use the following API: Public Declare Function GetCurrentThreadId Lib "kernel32.dll" () As Integer And call it inside your Thread Proc: Public Sub MyThreadProc() Dim intThreadID As Integer = GetCurrentThreadId()
There isn't a managed way of doing this, so, use the following API: Public Declare Function GetCurrentThreadId Lib "kernel32.dll" () As Integer And call it inside your Thread Proc: Public Sub MyThreadProc() Dim intThreadID As Integer = GetCurrentThreadId()