回复 3楼zhangzm1117的帖子
zhangzm1117 你好,
可以通过 c1Calendar1_BeforeDayFormat 事件设置,先判断是否为周六或周日,在通过以下代码设置:- private void c1Calendar1_BeforeDayFormat(object sender, C1.Win.C1Schedule.BeforeDayFormatEventArgs e)
- {
- if (e.Date.CompareTo(new DateTime(2013, 02, 25)) == 0)
- {
- e.Style.ForeColor = System.Drawing.Color.Red;
- }
- }
复制代码 |