c#更改组合框按钮的大小和图像 [英] c# change combobox button size and image

查看:94
本文介绍了c#更改组合框按钮的大小和图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的winform中有一个组合框,我希望使用另一个按钮更改显示列表(带三角形)的按钮,或至少更改图像。



<有可能吗?我该怎么做?



谢谢!

解决方案

使用 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆