DateTimePicker ?? MonthCalendar ???????? ???? ?????? ?? ??? ????????? ?? ???????? ?? ????? ????? CurrentUICulture ??? ?? .NET Framework ???, Visual Studio 2005 ???, ?? Visual Studio .NET ??? ???? ?? ???? ???????? ?????????

???? ?????? ???? ??????
???? ID: 889834 - ?? ???????? ?? ?????? ??? ?? ?? ???? ???? ???? ??.
??? ?? ??????? ???? | ??? ?? ??????? ????

?????

?? ????DateTimePicker???????? ?? ??MonthCalendar???? Microsoft Windows ??????? ????????? ????????? ????? ???? ???????? ?????? ??????? ????????? (???? ?? ??? ??? ??en_US). However, you set theCurrentUICultureproperty of your thread to French (fr_FR). The following behavior occurs:
  • The months are displayed in English.
  • The short date format ismonth/day/????.
TheDateTimePickercontrol and theMonthCalendarcontrol do not reflect theCurrentUICultureproperty of the application's main execution thread as you expected when you created the localized application.

In the following Microsoft Visual Basic 2005 or Microsoft Visual Basic .NET example, when you set theCurrentUICulture???? ?? ??? ???fr_FR,DateTimePickercontrol and theMonthCalendarcontrol do not display their user interface in French:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

     System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.CreateSpecificCulture("fr")
     System.Threading.Thread.CurrentThread.CurrentUICulture = System.Threading.Thread.CurrentThread.CurrentCulture

End Sub

????

This behavior occurs because theDateTimePickercontrol and theMonthCalendar???????? ?? Microsoft Windows ?? ??????? ???????? ???? ?????, ???????? ?????? ?? ?????????? ??????? ?? ?????????? ?? ?????????? ??????? ????????? ???? ???

????????

?? ??????? ?? ????? ?? ??? ???????? ???? ??? ?????????? ??????? ??????? ???????? ????????? ????? ??? ???? ?? ???, ????? ????? ?? ???? ????::
  1. ????? ????,???????????? ????,???????? ????????? ????, ?? ???? ???????????? ?? ???? ??????.
  2. ?????????????? ?? ???? ??????????? ????? ???, ??? ??? ???? ?? ??? ???????? ?????? ?? ??? ???? ?? ??? ???????? ???? ????? ????, ?? ???? ???????????? ?? ??? ???? ?? ??? ???? ???? ?? ??? ?????????? ???????? ?? ????? ???? ????? ??? ?? ??????? ?? ??? ???? ?? ??? ???
  3. ????? ????,OK.

???? ???????

?? ???? ??? ???? ??????? ?? ???DateTimePicker???????? ?? ????? Microsoft ?????? (MSDN) ??? ???? ?? ????:
(vs.71) http://msdn2.Microsoft.com/en-us/library/SYSTEM.Windows.forms.datetimepicker .aspx
?? ???? ??? ???? ??????? ?? ???MonthCalendar???????? ?? ???, ????? MSDN ??? ???? ?? ????:
(vs.71) http://msdn2.Microsoft.com/en-us/library/SYSTEM.Windows.forms.monthcalendar .aspx

???

???? ID: 889834 - ????? ???????: 05 ?????? 2010 - ??????: 2.0
???? ???? ???? ??:
  • Microsoft .NET Framework 2.0
  • Microsoft .NET Framework 1.1
  • Microsoft .NET Framework 1.0
  • Microsoft Visual Studio 2005 Standard Edition
  • Microsoft Visual Studio 2005 Professional Edition
  • Microsoft Visual Studio .NET 2003 Professional Edition
  • Microsoft Visual Studio .NET 2003 Enterprise Architect
  • Microsoft Visual Studio .NET 2003 Enterprise Developer
  • Microsoft Visual Studio .NET 2003 Academic Edition
  • Microsoft Visual Studio .NET 2002 Professional Edition
  • Microsoft Visual Studio .NET 2002 Enterprise Architect
  • Microsoft Visual Studio .NET 2002 Enterprise Developer
  • Microsoft Visual Studio .NET 2002 Academic Edition
??????: 
kbvs2005swept kbvs2005applies kbwindowsforms kbcontrol kblocalization kbtshoot kbinfo kbmt KB889834 KbMthi
???? ?????? ????????
??????????: ?? ???? ?? ???? ??????? ?? ????? ?? Microsoft ????-?????? ?????????? ?????? ?????? ???? ??? ??. Microsoft ???? ??? ????-???????? ?? ????-???????? ????? ?????? ?? ???? ???????? ???? ?? ???? ????? ????? ??? ?? ??? ?????? ?? ???? ???? ???? ??? ????? ??. ???????, ????-???????? ???? ????? ???? ???? ???? ???. ?????, ????????, ?????-???? ?? ??????? ?? ???????? ?? ???? ???, ???? ?? ??? ?????? ???? ???? ??? ????? ??? ?? ???? ??. Microsoft ??????? ??? ???? ?? ?????? ?? ??????????, ????????? ?? ??? ?????? ?? ???? ????? ?? ???? ???????? ?? ??? ???? ????? ?? ??? ????????? ???? ??. Microsoft ????-?????? ?????????? ?? ????? ?????? ?? ?? ??? ??.
?????????? ?? ??????? ????????? ??????? ??:889834

??????????? ???

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com