let's suppose i make an application in C#(winforms), we can run multiple instances of the same application by just running the exe[clr], i want that there should be only one instance allowed... i think its close to the defination of SDI [single document interface]... how to do it.
+3
A:
You should use a Mutex
to check for just one instance, like explained here: Using Mutex to force only one instance of Form and here Creating a single-instance application
Rubens Farias
2009-11-30 09:52:53
i like the second option
Junaid Saeed
2009-11-30 09:56:48