Detect Foreground / Background on PocketPC/SmartPhone

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Sorry for the CrossPost. Realized this might be a better location...

I have a .NET CF application that polls a service on a regular basis from a
smartphone / pocket PC phone. I want it to stop polling whenever it goes
into the background. I would like it to start polling again when brought to
the foreground.

Any easy way to detect this?
 
You could store your state as a boolean field and change it on the Activated
and Deactivate events for your form.

Peter
 
Back
Top