Advertisement
6_2008-2009 Databases/ Data Access/ DAO/ ADO #212490

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

AI Summary: 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.

Source Code
original-source
Upload
bool isInstanceExisting= false;
Mutex objMutex = new Mutex true, "Application_Mutex", out isInstanceExisting);
if (!isInstanceExisting)
{
 this.Dispose();
 return;
}
Original Comments (3)
Recovered from Wayback Machine