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

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

问题描述

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



这可能吗?我应该如何做呢?



谢谢!

解决方案使用 OwnerDrawn 技术,如下所述:。NET OwnerDraw ComboBox:Vista / 7主题的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: .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天全站免登陆