using System.Configuration; using System.Collections; namespace ShowCase.Forms { public class UserSettings : ApplicationSettingsBase { [UserScopedSetting()] [DefaultSettingValue( "" )] public Hashtable imagePath { get { if( !settings.ContainsKey( "imagePath" ) ) settings[ "imagePath" ] = new Hashtable(); // <- fix return (Hashtable)settings[ "imagePath" ]; } set { settings[ "imagePath" ] = value; } } private Hashtable settings = new Hashtable(); } }