06-19-2011, 07:38 PM
On upside in your project put this code
And now just in forum load put this
Done!
Code:
Sub CheckIfAlreadyRunning()
If Not Process.GetProcessesByName(Process.GetCurrentProcess.ProcessName).Length > 1 Then Exit Sub
MsgBox("The application is allready running", MsgBoxStyle.Critical, "System")
End
End Sub
And now just in forum load put this
Code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
CheckIfAlreadyRunning()
End sub
Done!