F
fniles
I am using VB.NET 2005. To check if the same program already run or not, I
can use the following
If Process.GetProcessesByName(Process.GetCurrentProcess.ProcessName).Length
" 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.GetProcessesByName(Process.GetCurrentProcess.ProcessName).Length
MsgBox("Another instance of " & Process.GetCurrentProcess.ProcessName &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.