Talha Majeed

Talha Majeed

  • NA
  • 40
  • 10.9k

Disable future dates on DateTimePicker

May 19 2017 1:55 AM
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)