Is there a way to store data statically in a class...

caeanis

Freshman
Joined
Sep 6, 2006
Messages
40
What I want to do is add items to a combobox list that when the app is closed will be saved and preserved for the next time the app it open. I am not sure whether using an xmlfile would be the right thing to use or maybe a class of some sort that will act as a simple data store. I want to avoid using an external text file and streamwriter or reader if possible. What would be the most simple approach to do it? Any suggestions would be welcome. Thank you!
 
If you are using VS 2005 or higher then the project has a settings property page you can use to configure various settings that get persisted as xml to the users profile.
 
Back
Top