C#/.NET DateTimePicker replacement that "respects" e.g. the CurrentUICulture

Posted by S.C. Madsen on Stack Overflow See other posts from Stack Overflow or by S.C. Madsen
Published on 2010-05-30T11:33:44Z Indexed on 2010/05/30 12:12 UTC
Read the original article Hit count: 551

Apparently the DateTimePicker does not "respect" or adhere to the CurrentUICulture of a .NET application, because DateTimePicker is a "Native" Common-control with a .NET wrapper (I think).

I have a C#/.NET Winforms application which uses custom-format for the DateTimePickers. Everything seems to be running smoothely except for the "AM/PM" part, which is not shown (I'm guessing this is due to the regional settings of my PC).

I have a requirement to display "AM/PM" regardless of the regional settings of the PC running my .NET Winforms application. I would rather not re-implement my own DateTimePicker control, which adheres to the CurrentIUCulture. So does anybody know of a work-around or have a link to DateTimePicker control re-implementation?

© Stack Overflow or respective owner

Related posts about winforms

Related posts about localization