display MonthCalendar selectable dates

  • Thread starter Thread starter Rachel Suddeth
  • Start date Start date
R

Rachel Suddeth

Is there a way to have the non-selectable dates (those before MinDate and
after MaxDate) draw differently so my users can see right away what dates
aren't allowed? I'm not seeing it...

Otherwise, anyone know of a cheap 3rd party calendar control I could use
that would provide that ability?

Thanks,
Rachel
 
I’d suggest setting those dates that can be selectable as bolded dates with
AddBoldedDate() and a call to UpdateBoldedDates() when you’ve added them all.

Brendan
 
Hmmm... it's a good idea, and it would be fine if I knew the allowable dates
would span no more than a few months. But what I have is a pop-up form that
contains a MonthCalendar, and this will be used in many different places
throught the application (like DatePicker, but DatePicker doesn't do things
as we want.) In some cases, that means every date on the entire calendar
would have to be added to the BoldedDates (if MinDate and MaxDate were left
at default values.) A very common scenario is that all dates before today
(or from today forward) are allowed. I think it's really necessary to treat
them as ranges, not as a collection of dates.

Well, maybe if I just bolded those allowable dates that currently showed...
and did AddBoldedDates as necessary when the visible month changed... I
supposed there must be a way to know when that happens.

-Rachel
 
Back
Top