PC Review


Reply
Thread Tools Rate Thread

Is Application running or not/Set Application in foreground

 
 
=?Utf-8?B?TWFydGluRkg=?=
Guest
Posts: n/a
 
      8th Jun 2005
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
 
Reply With Quote
 
 
 
 
Daniel Moth
Guest
Posts: n/a
 
      15th Jun 2005
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


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Put an application in foreground Andrea Caldarone Microsoft VB .NET 2 2nd Feb 2009 05:03 PM
get the foreground window in my application CBanu [IXIA] Microsoft Dot NET Framework Forms 1 15th Feb 2008 09:35 PM
Application does not come to foreground / get focus in Windows XP =?Utf-8?B?TWljaGFlbCBLLg==?= Windows XP General 1 12th Sep 2007 12:59 PM
External application in foreground =?Utf-8?B?VkIgVXNlcg==?= Microsoft VB .NET 1 12th May 2005 05:55 PM
running an application in foreground? one2001boy@yahoo.com Microsoft VC .NET 7 20th Mar 2005 08:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:09 PM.