Sure, you can use a System.Threading.Mutex to achieve this.
http://groups.google.com/groups?sourceid=navclient&ie=UTF-8&oe=UTF-8&q=dotnet+mu
tex+single+instance
2nd result has some code, as do many of the other results.
-mike
MVP
> Hi,
>
[quoted text clipped - 7 lines]
> Thanks
> Nagaraju
Nagaraju - 12 Nov 2003 00:27 GMT
great.
Thanks mike.
-Nagaraju
>-----Original Message-----
>Sure, you can use a System.Threading.Mutex to achieve this.
>
>http://groups.google.com/groups?sourceid=navclient&ie=UTF-8&oe=UTF-
8&q=dotnet+mutex+single+instance
>2nd result has some code, as do many of the other results.
>
[quoted text clipped - 14 lines]
>
>.
HI Nagaraj,
U can use system.diagnstics name space and find the all
process running on the machine.
if you find your Process name in the Process Collection
you can prompt a MSG and exit the Application
bye
Srinivas
>-----Original Message-----
>Hi,
[quoted text clipped - 9 lines]
>Nagaraju
>.
Michael Giagnocavo [MVP] - 12 Nov 2003 16:52 GMT
That doesn't always work. What if the user renames the executable?
-mike
MVP
> HI Nagaraj,
>
[quoted text clipped - 18 lines]
> >Nagaraju
> >.