How can I ensure that my EXE cannot be executed a second time while a previous instance is currently running?
Thanks,
Kevin
Printable View
How can I ensure that my EXE cannot be executed a second time while a previous instance is currently running?
Thanks,
Kevin
Use this code on Form_Load of your application:
Code:Private Sub Form_Load()
If App.PrevInstance Then
MsgBox "The application is already running. You cannot run more then 1 copy of this application."
End
End If
End Sub