Disabling months in my calendar control

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
 
M

Muhammad Naveed Yaseen

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top