c# - Windows 10 Creators Update 后 DateTimePicker 出现乱码

标签 c# winforms .net-4.6

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

Garbled Text Image

有没有其他人遇到过这个问题或者有任何建议的解决方法?

最佳答案

在显示包含 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/

相关文章:

c# - 使用 VS2015 Update 1 编译时表达式破坏代码

.net - Visual Studio 2013 和 .NET 4.6

c# - Task.Run 和 System.Threading.ThreadPool.RunAsync 之间有什么区别?

c# - 如何知道哪些程序集依赖于 system.web.mvc?

c# - Datagridview cellcontent 单击事件无法正常工作

c# - 同一页面上具有选定项目的两个 ListView

c# - 从 IEnumerable 中选择项目

c# - XNA 3.1 项目无法在 Windows 8 中构建

c# - 在datagridview中如何卡住2列?

来自可移植类库 : Value cannot be null or an empty string. 的 Nuget 参数名称:profileValue