I have a number of application settings (in user scope) for my custom grid control. Most of them are color settings. I have a form where the user can customize these colors and I want to add a button for reverting to default color settings. How can I read the default settings?
For example:
- I have a user setting named
CellBackgroundColor
inProperties.Settings
. - At design time I set the value of
CellBackgroundColor
toColor.White
using the IDE. - User sets
CellBackgroundColor
toColor.Black
in my program. - I save the settings with
Properties.Settings.Default.Save()
. - User clicks on the
Restore Default Colors
button.
Now, Properties.Settings.Default.CellBackgroundColor
returns Color.Black
. How do I go back to Color.White
?