【问题标题】:MonthCalendar color not changingMonthCalendar 颜色不变
【发布时间】:2020-05-07 19:00:09
【问题描述】:

我正在尝试在 c# 中更改 MonthCalendar 的颜色,但是当我尝试在设置中调整它时它不会改变。

如您所见,我更改了菜单中的颜色,但日历看起来还是一样。有谁知道为什么?

【问题讨论】:

标签: c# winforms monthcalendar


【解决方案1】:

我认为问题出在您的窗口视觉风格上: look here

在c#中

using System.Windows.Forms.VisualStyles;

Application.VisualStyleState=VisualStyleState.NoneEnabled; 

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-06-30
    • 2018-09-29
    • 2022-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-12-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多