How to save application settings in .net C# CF?
-
i am developing a windows mobile C# application, how to save application settings? The user should be able to update these settings, but the settings want to be retrieved next time application starts. Do i need to use registry key? or xml config? any other good way to achevie this??
-
i am developing a windows mobile C# application, how to save application settings? The user should be able to update these settings, but the settings want to be retrieved next time application starts. Do i need to use registry key? or xml config? any other good way to achevie this??
Try and save the data to a path such as: Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); You can serialize your data in xml/binary format. I prefer not to write to the registry, that is dirty.
Natza Mitzi
-
Try and save the data to a path such as: Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); You can serialize your data in xml/binary format. I prefer not to write to the registry, that is dirty.
Natza Mitzi
i will be gratefull, if u can giv me some sample codes to refer to...
-
i will be gratefull, if u can giv me some sample codes to refer to...
I just tried to write the code discussed and is seems like there is no serialization mechanism. You need to write a mechanism and you can find one here: http://www.codeproject.com/KB/mobile/SaveSettings.aspx[^]
Natza Mitzi