Is there an easy way to wrap a "Preferences Panel" thing around the Settings.settings
file (or any other settings file)?
Basically I have a bunch of strings stored in Settings.settings
, and want to have a form where the user can edit these..
I could add a bunch of TextBoxes, and have a button that does Properties.blah = this.blahInput.Text; Properties.Save();
for each, but this feels like reinventing the wheel..
Edit: The PropertyGrid control (as suggested by bassfriend's) seems perfect, but I cannot work out how to bind the property grid's SelectedObject to Properties.Settings.Default
- When I try I get the following error:
Cannot implicitly convert type 'MyProject.Properties.Settings' to 'object[]'