How to save a class in the settings.settings

Go4Expert Member
25Oct2007,18:45   #1
morfix78's Avatar
hello,
i have created a class with variables and i would like to know if it is possible to save the class in the settings file so that when the user will run the application i will be able to load the values from the setting.
i created a object in the settings file from the type of the class and i tried to write:
" Properties.Settings.Default.Model = this; //the model is the class
Properties.Settings.Default.Save();"
but when i run the application again the values are not the same as i wanted.
how can i save the values and load them when i run the application again.
thanks
Go4Expert Founder
25Oct2007,19:42   #2
shabbir's Avatar
You need to look at the serialization concept.
Go4Expert Member
25Oct2007,19:49   #3
morfix78's Avatar
can you please give me more details?
thanks
Go4Expert Founder
25Oct2007,20:28   #4
shabbir's Avatar
see http://www.codeproject.com/csharp/objserial.asp