daveofgv
Well-known member
Hello all -
I know how to bind all the user scope settings into a propertygrid, however, what if I don't want the user to see ALL the user settings. What if I want to pick 6 of them to be placed within the propertygrid on one form and 10 on another form. Can I pick and choose which user scope settings appear in a propertygrid?
Code for all use scope settings (but I only need certain ones)
I am using visual studio 2008. Windows Forms.
Thanks
I know how to bind all the user scope settings into a propertygrid, however, what if I don't want the user to see ALL the user settings. What if I want to pick 6 of them to be placed within the propertygrid on one form and 10 on another form. Can I pick and choose which user scope settings appear in a propertygrid?
Code for all use scope settings (but I only need certain ones)
VB.NET:
PropertyGrid1.SelectedObject = My.Settings
'---display only user-scoped settings---
Dim userAttr As New _
System.Configuration.UserScopedSettingAttribute
Dim attrs As New _
System.ComponentModel.AttributeCollection(userAttr)
PropertyGrid1.BrowsableAttributes = attrs
I am using visual studio 2008. Windows Forms.
Thanks
Last edited: