h1.post-title { color:orange; font-family:verdana,Arial; font-weight:bold; padding-bottom:5px; text-shadow:#64665b 0px 1px 1px; font-size:32px; } -->

Pages

How to disable future date in Datetimepicker

dateTimePicker1.MaxDate = DateTime.Now;
dateTimePicker1.CalendarForeColor = Color.LightGray;