Using Visual Studio in Italian, in a project in Visual C# adding a form object DateTimePicker the calendar that is shown on the click, displays the months in the Italian language, as you can set the display in English?
Asked
Active
Viewed 895 times
0
-
As written in the duplicate, you can't do it :-( – xanatos Mar 09 '15 at 08:22
2 Answers
1
It seems like this is not possible with Microsoft's calendar control.
This behavior occurs because the DateTimePicker control and the MonthCalendar control are Microsoft Windows common controls. Therefore, the operating system's user locale determines the user interface of these controls.
https://support2.microsoft.com/Default.aspx?scid=kb%3ben-us%3b889834&x=18&y=19
To change this behavior, change the user locale calendar settings in Control Panel. To do this, follow these steps:
- Click Start, click Control Panel, and then double-click Regional and Language Options.
- In the Regional and Language Options dialog box, select an item in the Select an item to match its preferences, or click Customize to choose your own format section to select the locale that you want the control to use.
- Click OK.
![](../../users/profiles/531524.webp)
Hüseyin Yağlı
- 8,508
- 4
- 38
- 47
-
@CristianMagrini: I am sure it does. Where did you use this? Try to put this in the `Program.Main` method. – Patrick Hofman Mar 09 '15 at 08:14
-
I've tried, but it doesn't work for DateTimePicker, the months still be in Italian – Cristian Magrini Mar 09 '15 at 08:16
0
You can't do that.
It just wraps the native calendar control, which uses the language of the operating system it runs on (but respecting a possibly installed OS language pack).
![](../../users/profiles/777985.webp)
Ray
- 5,849
- 3
- 42
- 75