c#更改组合框按钮的大小和图像 [英] c# change combobox button size and image
问题描述
<有可能吗?我该怎么做?
谢谢!
使用 OwnerDrawn
如下所述的技术: https://stackoverflow.com/questions/2891981/net-ownerdraw-combobox-vista-7-themed-dropdownlist
或您覆盖窗口proc并重新定义整个控制消息处理,或者从头开始创建自己的控件,或者使用第三方控件,如DevExpress WinForms套件或Telerik。
I have a combobox in my winform, and I wish change the button that show the list (with the triangle) with another button or at least change the image..
it's possible? how can I do this?
thanks!
you should use OwnerDrawn
techniques like the one described here: https://stackoverflow.com/questions/2891981/net-ownerdraw-combobox-vista-7-themed-dropdownlist
or you override the window proc and redefine whole control message handling or you create your own control from scratch or you use third party controls like DevExpress WinForms suite or Telerik ones.
这篇关于c#更改组合框按钮的大小和图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!