使用 VS 2015、C#、Winforms 构建的应用程序,使用 DateTimePicker Windows 控件,将机器更新到 Windows Creators Update 后文本出现乱码。
有没有其他人遇到过这个问题或者有任何建议的解决方法?
最佳答案
在显示包含 DateTimePicker 的表单之前,在 WinForms 应用程序中启用视觉样式。
Application.EnableVisualStyles();
//Form1 contains the DateTimePicker component
Application.Run(new Form1());
关于c# - Windows 10 Creators Update 后 DateTimePicker 出现乱码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43397219/