Detect Foreground / Background on PocketPC/SmartPhone

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?
 
P

Peter Foot [MVP]

You could store your state as a boolean field and change it on the Activated
and Deactivate events for your form.

Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top