?How to Check the instance of an application in VB.Net
''' Check whether the instance of an application is running or not
Private Function CheckInstanceOfApplication() As Boolean
CheckInstanceOfApplication= False
Dim AllProcesses As Process()
AllProcesses = Process.GetProcessesByName(Process.GetCurrentProcess.ProcessName)
If (AllProcesses.Length > 1) Then
Return True
End If
End Function
'''''''''''''''' End Here
0 comments
Post a Comment