T Thom Little Apr 13, 2004 #1 How can I limit an application to running only one copy of itself at a time?
C cybertof Apr 13, 2004 #3 Try this : Process[] myProcess = Process.GetProcessesByName("YOUR_PROGRAM"); if (myProcess.Length>1) { MessageBox.Show("Application is already running..."); } else { Application.Run(new frmMain()); } Regards, Cybertof.
Try this : Process[] myProcess = Process.GetProcessesByName("YOUR_PROGRAM"); if (myProcess.Length>1) { MessageBox.Show("Application is already running..."); } else { Application.Run(new frmMain()); } Regards, Cybertof.
J Jon Skeet [C# MVP] Apr 13, 2004 #4 Thom Little said: How can I limit an application to running only one copy of itself at a time? Click to expand... See http://www.pobox.com/~skeet/csharp/faq/#one.application.instance
Thom Little said: How can I limit an application to running only one copy of itself at a time? Click to expand... See http://www.pobox.com/~skeet/csharp/faq/#one.application.instance