Does someone have an example of using a hashtable datatype in VS2005 my.settings?
In the VS settings designer, the field, ScreenLayout is defined with a datatype of hashtable.
I created a test application to do this. see the following code:
My.Settings.ScreenLayout = New Hashtable
My.Settings.ScreenLayout.Add("one", "one in hash")
My.Settings.ScreenLayout.Add("two", "two in hash")
My.Settings.ScreenLayout.Add("three", "three in hash")
My.Settings.Save()
When I run the application the first time, I can access the values from the hashtable in my.settings. Yet when run the application the second time and examine my.settings.ScreenLayout, it is set to nothing.
Could someone explain the issue to me?
TIA