|
-
Dec 3rd, 2006, 11:27 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Prevent second instance of application
Hi all,
I have an application built in C# on .Net Compact Framework 2.0. I want to prevent my app to run in a second instance. Basically I need to prevent any other instance of the app to load, like what was used to be done in vb6 with App.PrevInstance. I've found that Mutex or even loop through the process list could seems that this is not possible on .Net CF. Can anyone please help.
Thanks
-
Dec 4th, 2006, 02:25 AM
#2
Frenzied Member
Re: Prevent second instance of application
HI,
if this is PocketPC, then it is managed for you and only 1 instance will run. If it is Windows CE then you need to take a look at createmutex.
Pete
-
Dec 4th, 2006, 03:04 AM
#3
Thread Starter
Hyperactive Member
Re: Prevent second instance of application
Thanks for the tip. I finally ended using CreateMutex and yes its on Win CE.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|