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 remember selection of user after program is closed? Dynamic properties?

How to remember selection of user after program is closed? Dynamic properties?

Scheduled Pinned Locked Moved C#
csharpquestionvisual-studiohelptutorial
3 Posts 3 Posters 1 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.
  • M Offline
    M Offline
    mitreviper
    wrote on last edited by
    #1

    Hi all, I need to remember the selection ( eg. the radiobutton ) that the user selected even after the program closes so that the next time the program opens, the previously selected option whill be chosen. How can I do this? There's a property in Visual Studio.NET call dynamic properties, is this the answer to solving this problem? Thanks in advance.

    E P 2 Replies Last reply
    0
    • M mitreviper

      Hi all, I need to remember the selection ( eg. the radiobutton ) that the user selected even after the program closes so that the next time the program opens, the previously selected option whill be chosen. How can I do this? There's a property in Visual Studio.NET call dynamic properties, is this the answer to solving this problem? Thanks in advance.

      E Offline
      E Offline
      exhaulted
      wrote on last edited by
      #2

      Why not just save the values in a text or binary file using System.IO.StreamWriter / StreamReader or System.IO.BinaryWriter / BinaryReader Save the settings in form_Closing and read them in again in form_Load. Kev

      1 Reply Last reply
      0
      • M mitreviper

        Hi all, I need to remember the selection ( eg. the radiobutton ) that the user selected even after the program closes so that the next time the program opens, the previously selected option whill be chosen. How can I do this? There's a property in Visual Studio.NET call dynamic properties, is this the answer to solving this problem? Thanks in advance.

        P Offline
        P Offline
        Philip Fitzsimons
        wrote on last edited by
        #3

        IsolatedStorageFile


        "When the only tool you have is a hammer, a sore thumb you will have."

        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