Keeping a form single instanced on pocket pc

I need to prevent multiple copies of the same form from being opened by a user.  This is easy to do with the full .NET framework (using the System.Diagnostics.Process object to get a list of running processes and looking for the apps name twice) but the mobile framework System.Diagnostics does not include the Process object.  

Anyone know of an easy way to get a list of processes on pocket pc or have an alternate solution?  Thanks for any help.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Are you currently having this problem or are you expecting to have it? If an app is running on a PocketPC and you re-execute the application, the PockePC simply re-activates the app if it doesn't have focus.
mbwatkinsAuthor Commented:
I'm curretnly having this problem.  If I select the form from the programs list, a second instance of the form definitely starts as a second process.
If you can not get the process, either using the Dotnet way or WIn32 way,
like explained in these articles

then there is no proper way..

What at the most you can do is
When ever your application starts, write it somewhere that an instance has started, on a file/registry may be..
I dont know if you can write in a shared memory area in Dotnet or not. If yes then that would be ideal and when ever the new application starts it should check from there, that if an instance is present or not.
and while closing the application it should be cleared

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
create a form instance in module as a public
public objname as new frmname()
then when you want to open a form just write

this aproch will create form instance just a single time
mbwatkinsAuthor Commented:
The main problem was caused by debug mode.  You can open a second instance of the installed app behind a running debug instance.  The semaphore solution would've worked as well.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.