Windows 10 Creators更新后,DateTimePicker出现乱码

Dan*_*Dan 8 c# winforms .net-4.6

使用VS 2015,C#,Winforms构建的应用程序,使用DateTimePicker Windows控件,在将计算机更新到Windows Creators Update后,文本会出现乱码.

乱码的文字图片

有没有其他人遇到这个或有任何建议的工作?

小智 5

在显示包含DateTimePicker的Form之前,在WinForms应用程序中启用Visual Styles.

Application.EnableVisualStyles();

//Form1 contains the DateTimePicker component
Application.Run(new Form1());
Run Code Online (Sandbox Code Playgroud)


tou*_*mir 3

Windows 10 的 6 月累积更新 (KB 4022725) 包含更新的 COMCTL32.DLL,其中包含此问题的修复程序。安装更新后,文件版本应为 5.82.15063.413。

https://social.msdn.microsoft.com/Forums/en-US/4cf03067-46c4-4962-af8c-f4b1483e88ba/date-time-picker-garbled-after-windows-10-creators-update?forum=windowsgeneraldevelopmentissues