Create a mutex on startup. When the second instance starts, the mutex will
already exist, so you can exit silently. This has been discussed a bit
already:
http://groups.google.com/group/micro...rch+this+group
You can either P/Invoke, or leverage OpenNETCF to get a mutex.
--
Nino Benvenuti
Device Application Development MVP
http://nino.net/blog
"drumred" <(E-Mail Removed)> wrote in message
news:C0BB6848-2273-44F6-A10F-(E-Mail Removed)...
>I have noticed that if I click my program icon twice quickly that two
> instances of the program are started.
>
> If I click once, normally, the program loads once. Once loaded a second
> instance can not be started. How can I prevent double clicking from
> loading
> twice?