日历日历周的行为超出了上周 [英] MonthCalendar weeknumbers behaviour beyond last week

查看:137
本文介绍了日历日历周的行为超出了上周的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在MonthCalendar控件中遇到了奇怪的行为.在应用程序中,我正在使用MinDate和MaxDate属性通常会设置为例如相隔一年,而MaxDate通常不是一个月的最后一天.我也有ShowWeekNumbers 设置为True.发生的事情是,当到达MaxDate的星期时,星期数不会停止.它将继续对超出范围的周编号,直到该月的第6行,但每行使用相同的周编号.是否有错误 在控制中还是我做错了什么?

I'm experiencing a strange behaviour from the MonthCalendar control. In the application I'm working on the MinDate and MaxDate properties will often be set to e.g. a year apart and most often the MaxDate is not the last day of a month. I also have the ShowWeekNumbers set to True. What happens is that the numbering of weeks doesn't stop when it has reached the week of the MaxDate. It continues numbering weeks that are out of range until the 6th row in that month but using the same week number on each row. Is there a bug in the control or am I doing something wrong?

推荐答案

如果您可以显示一个简单的表单代码示例,其他成员可以用来重现该问题,则可以提交错误报告.或者,您可能会找到解决方案.
If you can show a simple one form code example that other members here can use to reproduce the problem then you can submit a bug report. Or you may find a solution.


这篇关于日历日历周的行为超出了上周的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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