开发者

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))]
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜