VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Previous App Detection

by Dan Wold (3 Submissions)
Category: Coding Standards
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (6 Votes)

This easy code took me about 20 seconds to write, this detects on the Form_Load() Event if another Instance of the exe is already running, if it is it displays an error dialog, else it just runs the program, this is basicly for newbies, please vote for me, Happy Coding...

API Declarations
(None)

Rate Previous App Detection

If App.PrevInstance = True Then
MsgBox "There Is Already Another Instance Of This Application Running, Please Close It And Try Again.", vbExclamation, "Error"
End
End If

Download this snippet    Add to My Saved Code

Previous App Detection Comments

No comments have been posted about Previous App Detection. Why not be the first to post a comment about Previous App Detection.

Post your comment

Subject:
Message:
0/1000 characters