How to use the property grid in a form to edit any Type
问题 I have an App where I'd like to be able to edit any type (font, colour, point etc.) at run time and use any of the .Net default type editors. (e.g., font/ colour picker). Rather than re-invent the wheel, I decided to use the property grid control. If I pass an object of, say font, to the grid, it lists all the fields separately, with no option to open the font picker. Therefore, I created this generic wrapper class: Private Class Wrapper(Of T) Private _Value As T Public Property Value() As T