ComboBox Enabled-如何将灰色字体更改为黑色字体. [英] ComboBox Enabled - How can change the font that is gray to black.

查看:176
本文介绍了ComboBox Enabled-如何将灰色字体更改为黑色字体.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

感叹:我是一个初学者,到目前为止,我无法更改代码,因此,当禁用组合框时,内部文本为黑色.它是灰色的,难以阅读.我正在使用Visual Studio2005.

感谢您的帮助.

sigh: I am a beginner and so far I have not been able to change my code so that when the combobox is disabled the text inside is black. It is gray and hard to read. I am using Visual Studio 2005.

Thanks for helping.

推荐答案

您无法更改.唯一的方法是编写自己的ComboBox版本并自定义绘制.
You can''t change it. The only way to do so would be to write your own version of the ComboBox and custom draw it.


hello,
朋友,您不能对此做任何事情,为什么您要使用禁用的组合框却没有用,您可以这样做,您可以在表单加载时或单击按钮时启用该组合框,然后使用它,但是如果您的要求被禁用,则无法使用该组合框那么我建议您创建自己的组合框,即您必须创建自己的用户控件并设置其属性...

一旦找到有用的答案,就对我的答案进行评分

谢谢与问候
基:rose:
hello,
Friend u cant do anything about it and why would u use a disabled combobox its of no use, either u can do this,u can enable that combobox on form load or on a button click and then use it but if ur requirement is disabled combobox then i would suggest u to create ur own combobox i.e. u have to create ur own user control and set its properties...

Do rate my answer once u find it useful

Thanks & Regards
Radix :rose:


这篇关于ComboBox Enabled-如何将灰色字体更改为黑色字体.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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