Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to save application settings in .net C# CF?

How to save application settings in .net C# CF?

Scheduled Pinned Locked Moved C#
csharpwindows-adminxmltutorialquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Aghosh Babu
    wrote on last edited by
    #1

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

    N 1 Reply Last reply
    0
    • A Aghosh Babu

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

      N Offline
      N Offline
      Natza Mitzi
      wrote on last edited by
      #2

      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

      A 1 Reply Last reply
      0
      • N 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

        A Offline
        A Offline
        Aghosh Babu
        wrote on last edited by
        #3

        i will be gratefull, if u can giv me some sample codes to refer to...

        N 1 Reply Last reply
        0
        • A Aghosh Babu

          i will be gratefull, if u can giv me some sample codes to refer to...

          N Offline
          N Offline
          Natza Mitzi
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups