如何在c#.net中更改日期时间选择器的前色 [英] How to change the forecolor of a datetime picker in c#.net

查看:86
本文介绍了如何在c#.net中更改日期时间选择器的前色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想更改日期时间选择器显示日期的前景色,

请帮帮我..

I want to change the forecolor of the displayed date of a datetimepicker,

Pls help me..

推荐答案

您正在谈论哪个日期时间选择器?如果您有源代码,请查找选定日期"参数.无论在哪里找到被设置的位置,都应尝试更改该控件的前景色.

假设您要更改文本框,则可以使用textbox1.ForeColor以及textBox1.BackColor来玩.
Which datetime picker you are talking of? If you have the source code, look for the ''selected date '' parameter. Where ever you find that being set, try to change the forecolor of that control.

Lets say if you want to change that for a textbox, then you have textbox1.ForeColor as well as textBox1.BackColor to play around.


这篇关于如何在c#.net中更改日期时间选择器的前色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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