Wie lautet heute der Oberbegriff für solch ein Code.
Nennt man den weiterhin ein "sub" wie zu Urzeiten?
Oder wie?
Gruß Dscipuli
Nennt man den weiterhin ein "sub" wie zu Urzeiten?
Oder wie?
Gruß Dscipuli
Code:
namespace AktivImp
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
bool mutexCreated = false;
Mutex mutex = new Mutex(true, Application.ProductName, out mutexCreated);
if (!mutexCreated)
{
/*
MessageBox.Show(
"\"" + Application.ProductName + "\" läuft schon. Es ist nur eine Instanz erlaubt!",
"\"" + Application.ProductName + "\" läuft schon",
MessageBoxButtons.OK,
MessageBoxIcon.Information);
*/
mutex.Close();
return;
}
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}