As you know the standard DateTimePicker control is not able to be culture independent and it's use a working NET Framework culture also if you decide to run your application thread in another culture.
This control is a simple workaround in order to bypass that problem.
This control is a simple workaround in order to bypass that problem.
This is a first version of JDCalendarControl, entirely written in C#.
It's mimic the standard DateTimePicker, is similar a combobox, when you click the dropdown button the calendar appear.
Supports many culture languages, not alls not latin characters fonts are been tested.
The main feature is the possibility to change the control culture both design time and runtime.
If you do not supply any culture on property 'Culture' the control use the default NET Framework settings; if you change the current thread culture the control use the current thread culture; if you supply another culture the control use that.
The main feature is the possibility to change the control culture both design time and runtime.
If you do not supply any culture on property 'Culture' the control use the default NET Framework settings; if you change the current thread culture the control use the current thread culture; if you supply another culture the control use that.
There are a lot of properties in order to help the user as the display format on long or short format date, you can retrieve all months and days name and you can change the control colors from four embedded theme. It 's also possible to change any single color, if you wish. Finally you can set the current date. Only one event is available and is 'OnValueChanged' thts supply a current control DateTime value.
Herebelow a simple sample.
As you can see on DateTimePicker my NET Framework is in Italian while the current thead in on German (de-DE) and the control Culture is en-US. CurrentLongDate and CurrentShortDate are current formatted values from the control.
On the property grid alls the custom properties are shown.
Hoping this control can be useful for someone.