I have the following code in my Winforms OnLoad event:
dtpStartDateFilter.Value = DateTime.MinValue;
dtpStartDateFilter
is a standard WinForms date time picker. When my form loads it encounters the previously entered code line and then exits (with WinForms eating the exception so I have no idea what it is).
What's wrong with doing this?