views:

98

answers:

3

How / where do I store settings in a windows mobile 6 application (targeting compact framework 3.5)?

Is there some mechanism like the properties.settings for desktop?

A: 

It would be best to use the config settings class to do the job for you. Alternatively, for more flexibility, use an INI class handler (there are a good few out there, look for Windows mobile platform portability). Nini would be your best bet! Hope this helps, Best regards, Tom.

tommieb75
There is a config settings class? Great!Where can I find it? Or documentation about it?
Sam
I have included the link in the above, http://nini.sourceforge.net. If you have difficulty, let me know and I will gladly email you the source distribution.
tommieb75
+2  A: 

Unfortunately, the System.Configuration is missing from .NET Compact Framework.

You can use the Smart Device Framework or you can just create a class that stores your settings and the save it and load it using a XmlSerializer.

hjb417
A: 

Or just store the stuff in the registry, which is what I ended up doing.

Sam