469,645 Members | 1,162 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,645 developers. It's quick & easy.

display MonthCalendar selectable dates

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
Nov 17 '05 #1
2 3106
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
"Rachel Suddeth" wrote:
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

Nov 17 '05 #2
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

"Brendan Grant" <gr****@NOSPAMdahat.com> wrote in message
news:54**********************************@microsof t.com...
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
"Rachel Suddeth" wrote:
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

Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by jpaquete | last post: by
13 posts views Thread by Sand | last post: by
8 posts views Thread by vbmark | last post: by
1 post views Thread by DS | last post: by
2 posts views Thread by Al_C | last post: by
1 post views Thread by =?Utf-8?B?R2lkaQ==?= | last post: by
1 post views Thread by =?Utf-8?B?UmF5IE1pdGNoZWxs?= | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.