I am using VB.NET 2005. To check if the same program already run or not, I
can use the following
If Process.GetProc essesByName(Pro cess.GetCurrent Process.Process Name).Length
MsgBox("Another instance of " & Process.GetCurr entProcess.Proc essName &
" is already running !")
End
End If
I am wondering if I can check the same thing for a thread.
I have 1 thread that I do not want to create multiple instances of. Can I
check whether the thread has exists before or not ?
Thank you.
can use the following
If Process.GetProc essesByName(Pro cess.GetCurrent Process.Process Name).Length
1 Then
" is already running !")
End
End If
I am wondering if I can check the same thing for a thread.
I have 1 thread that I do not want to create multiple instances of. Can I
check whether the thread has exists before or not ?
Thank you.
Comment