Have you ever wondered how you could just display all of your applications settings for editing and reviewing quick and easy. Here is how:
- Create a windows form (or use an existing one)
- Add a PropertyGrid control to the form (You will probably need to go to the all controls section of the toolbox to find it.)
- In the form load event simply set the property grid to display the application settings. Like this - PropertyGrid1.SelectedObject = My.Settings
Your done, it is that easy. Now all the applications settings will be displayed in a grid where they can be viewed and edited.
Note: If you only want to display User scope settings and not Application scope settings, do the following:
' Attribute for the user-scope settings.
Dim userAttr As New System.Configuration.UserScopedSettingAttribute
Dim attrs As New
PropertyGrid1.BrowsableAttributes = attrs