"Dynamic" localized display of custom DateTimePicker format
Posted
by S.C. Madsen
on Stack Overflow
See other posts from Stack Overflow
or by S.C. Madsen
Published on 2010-05-27T10:46:58Z
Indexed on
2010/05/27
10:51 UTC
Read the original article
Hit count: 240
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?
© Stack Overflow or respective owner