1
Answer

Disable future dates on DateTimePicker

Talha Majeed

Talha Majeed

7y
9.6k
1
I want to disable futuer date. I use the following code
 dateTimePicker1.MaxDate = DateTime.Now;  
 
 The problem is the futue date is not grayed out. I want to get  future date as greyed out picker as shown in the pic
 
 
Thanks,
Talha 
Answers (1)