PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework
how to allow only one instance of an application?
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework
how to allow only one instance of an application?
![]() |
how to allow only one instance of an application? |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
hi all
i want to block my users from running more then one instance of my app on their machine. how can i block my users from running more then one instance of my app on their machines? assaf |
|
|
|
#2 |
|
Guest
Posts: n/a
|
bool isFirstInstance = true;
Mutex mutex = new Mutex(true ,"INSTANCECHECK", out isFirstInstance ); if (!isFirstInstance) { MessageBox.Show("Another instance is running"); //... } //... (you can change "INSTANCECHECK" to what you want...) "assaf" <assafwo@hotmail.com> ha scritto nel messaggio news:urm5#K10EHA.3108@TK2MSFTNGP12.phx.gbl... > hi all > > i want to block my users > from running more then > one instance of my app > on their machine. > > how can i block my users from running more > then one instance of my app on their machines? > > > assaf > > > |
|
|
|
#3 |
|
Guest
Posts: n/a
|
assaf <assafwo@hotmail.com> wrote:
> i want to block my users > from running more then > one instance of my app > on their machine. > > how can i block my users from running more > then one instance of my app on their machines? See http://www.pobox.com/~skeet/csharp/...cation.instance -- Jon Skeet - <skeet@pobox.com> http://www.pobox.com/~skeet If replying to the group, please do not mail me too |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

