开发者

C# How to show the default Image selector when clicked in a propertygrid?

开发者 https://www.devze.com 2023-02-05 04:39 出处:网络
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?

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

精彩评论

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