|
-
February 5th, 2010, 09:09 AM
#1
store data
hi, I have a little program that when we click on a button it changes the color.
I want to store that data that when i open the program again it shows the last color . How can i do this??
thanks
-
February 5th, 2010, 09:59 AM
#2
Re: store data
===============================
My Blog
-
February 5th, 2010, 08:24 PM
#3
Re: store data
i prefer strore to a file. what do you sugest
thanks
-
February 5th, 2010, 08:56 PM
#4
Re: store data
 Originally Posted by devilonline
i prefer strore to a file. what do you sugest
thanks
Ummm... it is a file, but you can write out the file yourself if you like. You can define your own serialization scheme or use .NET's.
-
February 5th, 2010, 10:54 PM
#5
Re: store data
XML and LINQ are really creat for that kind of stuff.
Take a look at this: http://www.hookedonlinq.com/LINQtoXM...eOverview.ashx
You could make an XML file looking somthink like this:
<settings>
<myButton color="blue" text="click me" />
</settings>
The great thing about these kind of files is that you can but alot of stuff into them, and have it organized neatly.
You could also make an .ini-style file, but i think you would have to make your own parser for such a file.
Last edited by jonlist; February 5th, 2010 at 10:59 PM.
Reason: elaborated
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|