Article ID: 889834 - View products that this article applies to.
You add a DateTimePicker control and a MonthCalendar control to your Microsoft Windows Forms application. Your operating system's calendar is set to English (en_US). However, you set the CurrentUICulture property of your thread to French (fr_FR). The following behavior occurs:
In the following Microsoft Visual Basic 2005 or Microsoft Visual Basic .NET example, when you set the CurrentUICulture property to fr_FR, the DateTimePicker control and the MonthCalendar control do not display their user interface in French:
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.
To change this behavior, change the user locale calendar settings in Control Panel. To do this, follow these steps:
For more information about the DateTimePicker control visit the following Microsoft Developer (MSDN) Web site:
http://msdn2.microsoft.com/en-us/library/system.windows.forms.datetimepicker(vs.71).aspxFor more information about the MonthCalendar control, visit the following MSDN Web site:
Article ID: 889834 - Last Review: December 3, 2007 - Revision: 3.5
Contact us for more help
Connect with Answer Desk for expert help.