I have tried a lot, but not able to find a perfect solution for same.
I am wokring on a WPF Desktop application,
Username, Database name ,server name and password.. those information user entered for successful access/login into the system. I want to store those information in some memory and reuse it after session/application end.
like in gmail.com, we don't need to enter our email id to access it. (It by default available, if we used earlier).
Most relevant solution - http://www.dotnetfunda.com/articles/show/955/using-isolatedstoragefile-to-store-data-in-wpf-application-class-event
I have tried to use list to store data and access, but not able to do it.
Many thanks in advance. (this is my first time to ask any question online)
Application Settings - cannot be changed during the running of a program
I assume that you are not allowing user to change values like Database name and server name which is normally stored in application setting which has a great documentation at here .
Storing of Connection String
Connection String are always stored at the config file of your project which looks like:
and can be access by the following code:
User Settings - settings can be changed during running of a program For settings like user name and password I would recommend you to store it at User settings which also has a great documentation at msdn(simpler but not very complete) and code Project(Very complete but takes time to go through).
Hope this helps!