Murugan.com
Murugan Andezuthu Dharmaratnam

  |  HOME   |  BLOG   |  TWITTER   |  ARTICLES   |  8086  |  C++   |  VC++   |  ASP .NET   |  VB .NET   |  JAVA SCRIPT   |  MS SQL   |  MY   |  VIDEOS   |  DOWNLOADS   |  CONTACT ME   |  



ASP / VB .NET Get The State Of the Current Thread and check if its running

Home   VB.NET   ASP / VB .NET Get The State Of the Current Thread and check if its running          



You could get the state of the current thread by using this line of code
MsgBox(oThread.ThreadState)

Eg:
Here is a code to create a new therad if the thread is nor running. 

        If oThread.ThreadState <> Threading.ThreadState.Running Then
            oThread = New System.Threading.Thread(AddressOf PopulateTreeThread)
            oThread.Start()
        End If






  |  HOME   |  BLOG   |  TWITTER   |  ARTICLES   |  8086  |  C++   |  VC++   |  ASP .NET   |  VB .NET   |  JAVA SCRIPT   |  MS SQL   |  MY   |  VIDEOS   |  DOWNLOADS   |  CONTACT ME   |  

Copyright 2009 @ Murugan Andezuthu Dharmaratnam