I know:
Application settings can be stored as any data type that is XML serializable or has a TypeConverter that implements ToString/FromString. The most common types are String, Integer, and Boolean, but you can also store values as Color, Object, or as a connection string.
I have a ListDictionary class setting – which is serializable but everytime I start up my app again it is null despite creating, assigning and saving a ListDictionary to my settings:
Properties.Settings.Default.Preferences = new System.Collections.Specialized.ListDictionary();
Properties.Settings.Default.Preferences.Add(1, "test");
Properties.Settings.Default.Save();
How can I use such a class as an application setting? I need a dictionary type collection as a setting…
There are a set of things i would like you to try.
http://msdn.microsoft.com/en-us/library/aa730869(v=vs.80).aspx
add 2 strings(DictionaryKey and Dictionaryvalue) to the settings and set the scope as user and value as blank
make 2 sting settings and do this
And when you are retrieving the values
use this code:
Regards,
Vivek Sampara