Advertisement
7_2009-2012 Databases/ Data Access/ DAO/ ADO #235008

Easy Way to prevent more than one instance of any application

This tutorial will help, preventing more then one instance of any application, which contains this code in form_load event.

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
Upload
bool isInstanceExisting= false;
Mutex objMutex = new Mutex true, "Application_Mutex", out isInstanceExisting);
if (!isInstanceExisting)
{
 this.Dispose();
 return;
}
Commenti originali (3)
Recuperato da Wayback Machine