更改C#中下拉列表的边框颜色 [英] Change border color of dropdown in C#

查看:784
本文介绍了更改C#中下拉列表的边框颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

早上好,



我在c#中有一个组合框,我需要更改下拉列表的边框颜色,



我怎么能这样做?



谢谢:)

Good Morning,

I have a combobox in c#, and I need change the border color of drop down list,

How I can do this?

Thanks :)

推荐答案

你需要自定义绘制它 - 标准的ComboBox不允许你自定义下拉列表的外观。



这个例子可能对你有所帮助:



外观可自定义组合框 [ ^ ]



但我不知道它是否允许更改下拉列表,或仅更改文本框部分。



一般来说,这很难做到,而且可能需要很长时间来弄清楚并进行排序。你确定它值得花时间吗?
You need to custom draw it - the standard ComboBox doesn''t allow you to customize the appearance of the drop down list.

This example might be of help to you:

Appearance Customizable ComboBox[^]

But I don''t know if it even allows changes to the drop down list, or only to the textbox part.

Generally, this is quite hard to do, and it''ll probably take you a long time to figure out and get sorted. Are you really sure that it''s worth the time?


这篇关于更改C#中下拉列表的边框颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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