You can find Mutex in the Threading namespace.
If you dont have a form just specify the name of your application as a whole, not the form. Like "WindowsApplication2".
Dim mut As New Threading.Mutex(False, "apachemon")
If Not mut.WaitOne(0, False) Then
MsgBox("ApacheMon is running")
End If
Will do nothing?
apachemon <- is my exe and application name.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.