1

How can I change the calendar (of DateTimePicker of windows Form - c#) to English?

Now, it looks like this:

enter image description here

This opposite Hebrew...

Edit:

After change to English, it still seemed strange:

enter image description here

T.S.
  • 18,195
  • 11
  • 58
  • 78
user3868442
  • 117
  • 1
  • 4
  • 12
  • You will need to set the culture info – TheLethalCoder Aug 26 '15 at 16:20
  • @TheLethalCoder How? – user3868442 Aug 26 '15 at 16:22
  • 1
    See this : https://support.microsoft.com/en-us/kb/889834 – PaulF Aug 26 '15 at 16:24
  • @PaulF I change (thank you). But it still seemed strange, I upload a photo. – user3868442 Aug 26 '15 at 16:38
  • Also, make sure your property "RightToLeft" is set properly – T.S. Aug 26 '15 at 18:38
  • Looks like a `Font` problem. Although I don't think the drop down's font can be easily changed. – Loathing Aug 26 '15 at 21:11
  • RightToLeft might work, but you might have to set it on the drop down, which will probably require getting the drop down's `Handle` and using `SendMessage(...);` with the `RTL` message. Use Tools->Spy++ to inspect the window and look at the `WindowStyles`. – Loathing Aug 26 '15 at 21:14
  • Correction, setting the `WindowStyle` using a handle requires using the `SetWindowLong`, not `SendMessage`. E.g. http://stackoverflow.com/questions/3343724/how-do-i-pinvoke-to-getwindowlongptr-and-setwindowlongptr-on-32-bit-platforms – Loathing Aug 27 '15 at 21:52

1 Answers1

1

Someone had the same problem and solved it by adding an entry to the csproj file: https://stackoverflow.com/a/32516707/904156

Community
  • 1
  • 1
Loathing
  • 5,109
  • 3
  • 24
  • 35