| View previous topic :: View next topic |
| Author |
Message |
AndrewMan Grandmaster Cheater Supreme
Reputation: 0
Joined: 01 Aug 2007 Posts: 1257
|
Posted: Fri Mar 14, 2008 9:54 pm Post subject: How can you save all your settings? |
|
|
Ok, I have just made Daily Helper v.1.8 (In my signature is Daily Helper v.1.5).
I want to save all the settings a user puts into it. So next time the application is opened, those settings have been in there. I think this question was asked before but not answered.
If there is a code, and not just a setting, where would I put the code? Form Load? A Button that says "save settings"?
Please don't just provide me with a link, and actually explain it to me.
Thanks...
_________________
|
|
| Back to top |
|
 |
samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Fri Mar 14, 2008 9:58 pm Post subject: |
|
|
You should use either XML or the Registry.
Whichever you choose, there are ample tutorials on the web.
_________________
|
|
| Back to top |
|
 |
AndrewMan Grandmaster Cheater Supreme
Reputation: 0
Joined: 01 Aug 2007 Posts: 1257
|
Posted: Fri Mar 14, 2008 9:59 pm Post subject: |
|
|
| samuri25404 wrote: | You should use either XML or the Registry.
Whichever you choose, there are ample tutorials on the web. |
Would just creating a registrykey allow for a user to save settings?
_________________
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Fri Mar 14, 2008 10:12 pm Post subject: |
|
|
| Create your own key in HKEY_CURRENT_USER if you're going to use the registry. It's easy as hell in .NET
|
|
| Back to top |
|
 |
AndrewMan Grandmaster Cheater Supreme
Reputation: 0
Joined: 01 Aug 2007 Posts: 1257
|
Posted: Fri Mar 14, 2008 10:16 pm Post subject: |
|
|
| slovach wrote: | | Create your own key in HKEY_CURRENT_USER if you're going to use the registry. It's easy as hell in .NET |
Yeah I know. Thats why I asked if just creating one would save settings. Thanks for the help guys.
_________________
|
|
| Back to top |
|
 |
Estx Expert Cheater
Reputation: 0
Joined: 04 Mar 2008 Posts: 172
|
Posted: Sat Mar 15, 2008 2:25 am Post subject: |
|
|
No, just creating a registry key wont be everything you need.
For example: when your application closes (or every time something important happens) you need to save what-ever variables need saving to the registry (or whatever you decided on). And obviously you need to load these variables from the registry when needed, for example when you start your application.
Hope that helps.
|
|
| Back to top |
|
 |
HolyBlah Master Cheater
Reputation: 2
Joined: 24 Aug 2007 Posts: 446
|
Posted: Sat Mar 15, 2008 4:11 am Post subject: |
|
|
I prefer using INI or XML files.
I don't like when people touch my registry.
|
|
| Back to top |
|
 |
jason744 Grandmaster Cheater
Reputation: 0
Joined: 25 Nov 2007 Posts: 638
|
Posted: Sat Mar 15, 2008 4:37 am Post subject: |
|
|
Just do it the way I did.
The settings tab in My Project
And I can't be bothered typing the rest.
|
|
| Back to top |
|
 |
samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Sat Mar 15, 2008 7:00 am Post subject: |
|
|
| HolyBlah wrote: | I prefer using INI or XML files.
I don't like when people touch my registry. |
INI are out of date, and have lost support.
_________________
|
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Sat Mar 15, 2008 8:16 am Post subject: |
|
|
Just because they're out of date, doesn't mean that you can't use them. But, I guess now a days you should use the registry more than ini files.
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
|