Properties.Settings.Default.Save

08/25/2021 00:53 Anja Mielbrecht#1
DONE CLOSE
08/25/2021 19:01 Mikesch01#2
I assume you use WPF as your UI project.

Those property settings are saved on the user profile of your operating system. So you can save and load them easily with the code you provided. But they can't be saved at the same folder as the executable is.

You can write your own simple persistence system by havin a class which acts as a model (e.g. AccountSettings), which contains all the information that needs to be saved and a persistence class which saves and loads the data.

For saving: Serialize this data as json or xml and write the serialized data into a file which points to the application folder.

For lading: Unserialize the data from the file and put it back into the model class
08/25/2021 19:45 Anja Mielbrecht#3
Quote:
Originally Posted by Mikesch01 View Post
I assume you use WPF as your UI project.

Those property settings are saved on the user profile of your operating system. So you can save and load them easily with the code you provided. But they can't be saved at the same folder as the executable is.

You can write your own simple persistence system by havin a class which acts as a model (e.g. AccountSettings), which contains all the information that needs to be saved and a persistence class which saves and loads the data.

For saving: Serialize this data as json or xml and write the serialized data into a file which points to the application folder.

For lading: Unserialize the data from the file and put it back into the model class
the problem here that its not even saving in my system
08/26/2021 02:20 Mikesch01#4
Can you specify this? What and how did you check it?
08/26/2021 13:47 Anja Mielbrecht#5
Quote:
Originally Posted by Mikesch01 View Post
Can you specify this? What and how did you check it?
As i said when i check the checkbox & login it doesn't save it
I can give u the whole code in dms / discord if you want to check the whole project