>Hi Paul,
>
>>My suggestion was to look at the AddDates() method - you can intercept the click and allow/disallow date selection there.
>
>I thought about this, too, but the color of the day changes independently on what happens in AddDate.
Yeah, Marshal mentioned that as well. I guess I didn't look close enough at what he was telling me - I assumed it worked because I didn't see the background get changed. That was only because it wasn't refreshing based on the code I sent.
What I should have probably done was allow you to return .T. or .F. from DateClick(), since it's fired before any of the other code is run. Returning .F. should cancel the default behavior. The background coloring code is pretty hokey as well - I'm not sure why I hardcoded the values in there. And all that code really doesn't belong in Click() anyway.