I'm using Visual Studio 2010 where I have a project, called Utilities, containing my settings.settings
file which I want to access from other projects in the solution.
In another project, I want to let the user manage the settings in a Windows Form using PropertyGrid
. I also want to customize it using System.ComponentModel
settings. I've tried to apply the ComponentModel
settings such as DescriptionAttribute
in the Settings.Designer.cs
file which worked, but as it say in the comments of the file, the changes to that file when regenerated.
So my questions is as follows:
- How do I access the
Properties.Settings
from another project? - How do I customize the
PropertyGrid
without changing theSettings.Designer.cs
file? - As mentioned, I let the user manage the settings from a form. However, I want to restore the values when the users presses Cancel button. How do I do that?