How to display static (shared) object's properties via a Forms PropertyGrid?
- by Paul Sasik
I would like to display static (shared) objects at runtime in a PropertyGrid but if I try to set the selected object property of the grid like this:
_propertyGrid.SelectedObject = System.Windows.Forms.Application
I get this compilation error:
'Application' is a type and cannot be
used as an expression.
Is there a way to display a static (shared) object or the object's properties in the PropertyGrid?