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
Printable View
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
I would use the Properties.Settings.
http://msdn.microsoft.com/en-us/libr...69(VS.80).aspx
i prefer strore to a file. what do you sugest
thanks
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.