"Dynamic" localized display of custom DateTimePicker format
- by S.C. Madsen
I have a Winform application with 2 DateTimePicker's on it, initialized as follows:
private void InitializeComponent()
{
...
this._StartDate.Format = System.Windows.Forms.DateTimePickerFormat.Short;
....
this._StartTime.CustomFormat = System.Globalization.DateTimeFormatInfo.CurrentInfo.ShortTimePattern;
this._StartTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
...
}
My question is: When I pick a new region from "Regional and Language Options" in the Control Panel, the _StartDate display is updated to reflect the new regional settings, but the _StartTime is not. Why?