README.md

December 5, 2022 ยท View on GitHub

Previous App Detection

Description

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...

More Info

Submitted On
ByDan Wold
LevelBeginner
User Rating5.0 (30 globes from 6 users)
CompatibilityVB 6.0
CategoryCoding Standards
WorldVisual Basic
Archive File

API Declarations

(None)

Source Code

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