How do I check to see if there already is an instance of my applications running? Say I have an installer and I want to check to see if it's already running so that when the user clicks on the executable it doesn't do anything.
Printable View
How do I check to see if there already is an instance of my applications running? Say I have an installer and I want to check to see if it's already running so that when the user clicks on the executable it doesn't do anything.
You can use App.PrevInstance to check it:
Code:Private Sub Form_Load()
If App.PrevInstance Then
MsgBox "Application is already running."
End
End If
End Sub