Disabling months in my calendar control

  • Thread starter Thread starter Garg
  • Start date Start date
G

Garg

Hi

i want to disable soem months in my calendar control.

I dont want to display certain months at all in my calendar. How do i
do that?

Shivani
 
i want to disable soem months in my calendar control.

Trap VisibleMonthChanged event, in that even set SelectionMode to None
when disabling is required (give appropriate forecolor or backcolor if
necessary)
I dont want to display certain months at all in my calendar. How do i do that?

In the same event set VisibleDate property to skip the month if
necessary. You can infere direction of movement from NewDate and
PreviousDate properties of MonthChangedEventArgs.
 
Back
Top