/// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault( false); bool onlyInstance = false; Mutex mutex = new Mutex( true, " RedirectorConfigurationTool ", out onlyInstance); if (!onlyInstance) { MessageBox.Show( " Only one instance can be lunched at the same time "); return; } else { Application.Run( new ConfigurationTool()); } }