C# How to show the default Image selector when clicked in a propertygrid?
I have a class with an Image开发者_JS百科 property. This property is exposed via the propertygrid. I want to show the default image window. How can I do this? And how can I get the selected value?
It is the same functionality as when you choose an Image for a Form. I want to show that window.
Try to add next atribute to the Image property
[EditorAttribute(typeof(System.Drawing.Design.ImageEditor), typeof(System.Drawing.Design.UITypeEditor))]
精彩评论