중복 실행 방지
프로그램이 실행중인 경우는 "이미 실행중입니다." 라는 메시지와 함께 프로그램 실행을 막고 싶으면 Program.cs 에 다음과 같이 코딩합니다. using System.Threading; bool CreateNew; Mutex dup = new Mutex(true, "프로그램명", out CreateNew); if (CreateNew) { // 프로그램 실행부분 Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Program()); } else { MessageBox.Show("이미 프로그램이 실행중입니다"); }