简体   繁体   English

禁用和启用时如何更改 datetimepicker 字体颜色?

[英]how to change datetimepicker font color when disabled & enable?

How do I change the font color of DateTimePicker to white color when this control is Disabled and to black color when Enabled?禁用此控件时如何将 DateTimePicker 的字体颜色更改为白色,启用时如何更改为黑色?

Thanks.谢谢。 Yudha尤达

In most cases need to use DateTimePicker.OnEnabledChanged event handler.大多数情况下需要使用DateTimePicker.OnEnabledChanged事件处理程序。 See to MSDN .请参阅MSDN Here is answer to your question: 以下是您的问题的答案:

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

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