1
2
3
4
5
6
7
8
9
10
11
12
|
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
System.Threading.Mutex Mu = new System.Threading.Mutex(false, "{86E6517F-71A5-4ea6-A4E6-DA3AF2932C97}");
if(Mu.WaitOne(0, false))
Application.Run(new Form1());
else
MessageBox.Show("Dieses Programm ist bereits geöffnet");
}
|