Advertisement
3_2004-2005 Coding Standards #141483

Previous App Detection

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

AI

Riepilogo AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Codice sorgente
original-source
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
Commenti originali (3)
Recuperato da Wayback Machine