简体   繁体   English

C#更改组合框按钮的大小和图像

[英]c# change combobox button size and image

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.. 我的winform中有一个组合框,我希望用另一个按钮更改显示列表(带有三角形)的按钮,或者至少更改图像。

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 您应该使用此处描述的OwnerDrawn技术: 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. 或者您覆盖窗口proc并重新定义整个控件的消息处理,或者从头开始创建自己的控件,或者使用第三方控件(例如DevExpress WinForms套件或Telerik控件)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM