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. Persisting data in the app

Persisting data in the app

Scheduled Pinned Locked Moved C#
questionwinformscom
3 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.
  • D Offline
    D Offline
    Dinuj Nath
    wrote on last edited by
    #1

    How do I persist information in an app? I am taking some input from the user in a form and I want to access this information from any form. How do I do it? I am talking about windows forms. Thanks - बुरा जो देखण मै चला, बुरा न िमलया कोय, जो मन खोजा आपणा तो मुझसे बुरा न कोय। Translation

    S 1 Reply Last reply
    0
    • D Dinuj Nath

      How do I persist information in an app? I am taking some input from the user in a form and I want to access this information from any form. How do I do it? I am talking about windows forms. Thanks - बुरा जो देखण मै चला, बुरा न िमलया कोय, जो मन खोजा आपणा तो मुझसे बुरा न कोय। Translation

      S Offline
      S Offline
      S Senthil Kumar
      wrote on last edited by
      #2

      You could use a config file for it. If the information is complex enough, you can use a database to store the data. The simplest way is to write a class, say Config, to store the configuration settings and then use XML serialization/deserialization to write and read back the data. Regards Senthil _____________________________ My Blog | My Articles | WinMacro

      D 1 Reply Last reply
      0
      • S S Senthil Kumar

        You could use a config file for it. If the information is complex enough, you can use a database to store the data. The simplest way is to write a class, say Config, to store the configuration settings and then use XML serialization/deserialization to write and read back the data. Regards Senthil _____________________________ My Blog | My Articles | WinMacro

        D Offline
        D Offline
        Dinuj Nath
        wrote on last edited by
        #3

        S. Senthil Kumar wrote:

        The simplest way is to write a class, say Config, to store the configuration settings and then use XML serialization/deserialization to write and read back the data.

        Yes, I thought of doing that. Is there no other alternative? I find it a little odd that there is no way I can persist some variables across the windows application in .Net.

        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