TriggerEditDialog StartBoundary is not showing 24h format.

Topics: Errors
Apr 26, 2013 at 8:54 PM
Hi. Thanks for great wrapper. I couldnt set 24h format for time display on triggerEditDialog. How can i do this?
Apr 26, 2013 at 9:45 PM
I look sourcecode. I saw
switch (value)
                        case FullDateTimePickerTimeFormat.ShortTime:
                            dateTimePickerTime.Format = DateTimePickerFormat.Custom;
                            dateTimePickerTime.CustomFormat = System.Threading.Thread.CurrentThread.CurrentUICulture.DateTimeFormat.ShortTimePattern;
                            dateTimePickerTime.Visible = true;
                        case FullDateTimePickerTimeFormat.Hidden:
                            //dateTimePickerTime.Value = dateTimePickerTime.Value.Date;
                            dateTimePickerTime.Visible = false;
                        case FullDateTimePickerTimeFormat.LongTime:
                            dateTimePickerTime.Format = DateTimePickerFormat.Custom;
                            dateTimePickerTime.CustomFormat = System.Threading.Thread.CurrentThread.CurrentUICulture.DateTimeFormat.LongTimePattern;
                            dateTimePickerTime.Visible = true;
and i added my application

Dim ci As CultureInfo
            ci = CType(Thread.CurrentThread.CurrentUICulture.Clone(), CultureInfo)
            ci.DateTimeFormat.LongTimePattern = "HH:mm:ss"
            ci.DateTimeFormat.ShortTimePattern = "HH:mm"
            Thread.CurrentThread.CurrentUICulture = ci
But I think your code need to use CurrentCulture . not CurrentUICulture

it's ok for me now.
Apr 29, 2013 at 4:24 PM
In looking at the documentation for CurrentCulture, I think you are correct. I will make the change and include it in the next release.