System AppDomain Get Current Thread Id
Imports System Imports System.Configuration Imports System.Resources ' Resource readers Public Class MainClass Shared Sub Main() Console.WriteLine("App_ThreadExit on thread id= " & System.AppDomain.GetCurrentThreadId().ToString()) End Sub End Class