tags:

views:

51

answers:

2

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
i like the second option
Junaid Saeed
A: 

Another good solution would be here or here

Oliver