CF apps on PPCs already force the single instance rule.
Alex F describes how here:
http://blog.opennetcf.org/afeinman/p...E-0323B7F54B11
Also check out the Form.Deactivate event
Cheers
Daniel
--
http://www.danielmoth.com/Blog/
"MartinFH" <(E-Mail Removed)> wrote in message
news:9B4E9353-33E9-4E3E-821E-(E-Mail Removed)...
> Hello,
>
> i've got some questions about developing with VB.NET and the .NET CF.
> 1. How can i check if a instance of my program is already running on the
> Pocket PC? (for example: user starts my program - if a instanz of my
> program
> is already running i close this instance and restart my program)
> 2. When my program lost focus - cause the user opens another program. How
> can i give my program when something happens in my program (like Error
> Warning ...) again the focus and set it in the foreground?
>
> I hope you understand my bad english and can help me.
>
> Martin