private void XXXXX_Load(object sender, EventArgs e)
{
string m_UniqueIdentifier;
string assemblyName =
System.Reflection.Assembly.GetExecutingAssembly().GetName(false).CodeBase;
m_UniqueIdentifier = assemblyName.Replace("\\", "_");
m_Mutex = new Mutex(false, m_UniqueIdentifier);
if (m_Mutex.WaitOne(1, true))
{
}
else
{
m_Mutex.Close();
m_Mutex = null;
MessageBox.Show("Start only one Instance", "Allways runnning");
this.Close();
}
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.