hi all, in VB6 u can use something like this
in .net u can't do simillar
u must use Mutex
see u
if App.PrevInstance
in .net u can't do simillar
u must use Mutex
'in VB
'Form Declaration Variable
Private oMutex As Mutex
Private Function isInstanceCanRunning() As Boolean
oMutex = New Mutex(False, "SINGLE_INSTANCE_APP_MUTEX")
If oMutex.WaitOne(0, False) = False Then
oMutex.Close()
oMutex = Nothing
Return False
Else
Return True
End If
End Function
see u
Comments