Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 18:31

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Properties.Settings.Default.Save

Discussion on Properties.Settings.Default.Save within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1

 
Anja Mielbrecht's Avatar
 
elite*gold: 55
Join Date: Nov 2018
Posts: 473
Received Thanks: 181
Properties.Settings.Default.Save

DONE CLOSE
Anja Mielbrecht is offline  
Old 08/25/2021, 19:01   #2
 
Mikesch01's Avatar
 
elite*gold: 203
Join Date: Sep 2007
Posts: 732
Received Thanks: 190
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
Mikesch01 is offline  
Old 08/25/2021, 19:45   #3

 
Anja Mielbrecht's Avatar
 
elite*gold: 55
Join Date: Nov 2018
Posts: 473
Received Thanks: 181
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
Anja Mielbrecht is offline  
Old 08/26/2021, 02:20   #4
 
Mikesch01's Avatar
 
elite*gold: 203
Join Date: Sep 2007
Posts: 732
Received Thanks: 190
Can you specify this? What and how did you check it?
Mikesch01 is offline  
Old 08/26/2021, 13:47   #5

 
Anja Mielbrecht's Avatar
 
elite*gold: 55
Join Date: Nov 2018
Posts: 473
Received Thanks: 181
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
Anja Mielbrecht is offline  
Reply


Similar Threads Similar Threads
How to save your league of legends settings (same settings on every account)
12/24/2019 - League of Legends Guides & Strategies - 1 Replies
x
[Question] Fifa world default settings
02/02/2015 - Fifa - 1 Replies
:confused: Could anyone post default fifa world settings C:\Program Files (x86)\Origin Games\FIFA World\data\db :confused:
ship settings, settings kbot, stargates
07/11/2012 - DarkOrbit - 7 Replies
I would be very hutilidad, I indicate that I set settings on the ship, and that distance should be in the kbot, different proposals for spending the stars, always die in the kistalines :handsdown::handsdown:
Cant make the PCHack settings the same and MLE settings.
05/19/2009 - Grand Chase Philippines - 1 Replies
I can make the PCHack use Debug registers in the CodeFinders tab, and cant make it use Hardware breakpoints in the assembler tab, and I am using Vista but I think it has nothing to do with it since I have no errors...I just cant change the settings.



All times are GMT +1. The time now is 18:33.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.