Windows Mobile - Compact Framework as a Service?

What is the best way to run my C # Compact Framework program in the background on a Windows Mobile device? I need to respond to various events, such as a text message arriving with specific content. I would not want to start any user interface when starting the process, but just run in the background until an interface is needed.

How can I do that?

+4
source share
2 answers

Just create the application as a console application. If you need a message pump, you need to call Run without any parameters, and CF does not. OpenNETCF class Application2 in SDF . At this point, you can raise the user interface at any time by creating and showing the form as usual.

You cannot create a true service for CE or WinMo with managed code because EE Hosting is not supported.

+4
source

How about this project?

managedserviceswm.codeplex.com

+1
source

All Articles