문제

How can i disable the past date and only enable 3 dates from today's date in monthcalendar using vb.net? I couldn't find the dayrender event.

Any ideas?

Thanks in advance.

도움이 되었습니까?

해결책

You can makeuse of MinDate and MaxDate property of the MonthCalendar control to achieve your need,

CODE:

MonthCalTest.MinDate = New DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day)
MonthCalTest.MaxDate = MonthCalTest.MinDate.AddDays(3)

MINDATE - MAXDATE

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top