Limiting the dates within a C# win form DateTimePicker
.net, c#, datetimepicker
Solution
Use the `MinDate` and `MaxDate` properties.
dateTimePicker.MinDate = DateTime.Now;
dateTimePicker.MaxDate = DateTime.Now.AddDays(15);
(render on a french Windows 7)
Problem
Is it possible to limit which dates a user can select from a `dateTimePicker` on a C# winforms application? The basic principle for me is this: I have a `comboBox` with 5 items in it, based on which item the user selects I would like to limit which dates the user can then select from, having the unavailable dates grayed out. Is this possible?