How to relabel ellipsis button for modal UITypeEditor in PropertyGrid?

依然范特西╮ 提交于 2019-12-25 01:44:57

问题


I have a Windows forms PropertyGrid and a customer UITypeEditor per http://msdn.microsoft.com/en-us/library/system.drawing.design.uitypeeditoreditstyle.aspx

Displays an ellipsis (...) button to start a modal dialog box, which requires user input before continuing a program, or a modeless dialog box, which stays on the screen and is available for use at any time but permits other user activities.

That ellipsis button is pretty small. How can I relabel it with a more helpful label?


回答1:


Long story short, you can't. The basic MS PropertyGrid does not allow you to customize this text. It even uses a bitmap with 3 dots instead of text anyway and the width of the control is fixed.

Disclaimer: I'm the developer behind Smart PropertyGrid.Net, which can do what you want to achieve.



来源:https://stackoverflow.com/questions/52657453/how-to-change-the-text-on-the-button-of-uitypeeditor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!