powershell - Powershell DateTimePicker 不允许自定义样式/颜色
问题描述
试图改变我的 DateTimePicker 的颜色。无论我改变什么,它们都保持默认颜色。这是我尝试过的,
$BillDate.CalendarTitleBackColor = 'Red' #'33, 35, 50' <- color I plan on using for background
$BillDate.CalendarTitleForeColor = 'Red'
$BillDate.CalendarForeColor = 'Red'
$BillDate.BackColor = 'Red'
$BillDate.CalendarTrailingForeColor = 'Red'
$BillDate.CalendarMonthBackground = 'Red'
我有
[System.Windows.Forms.Application]::EnableVisualStyles()
[void][reflection.assembly]::Load('System.Windows.Forms')
[void][reflection.assembly]::Load('System.Drawing')
补充说,也许我只是错过了其他东西?这是在 Powershell (PS Studio & ISE) 中构建的
解决方案
推荐阅读
- c# - 你调用的对象是空的。由于 ConnectionString 而出现此错误
- javascript - 连接到天气 api 时传递的 url 错误
- python - plotly 表达条形图颜色变化
- python - Python中的二进制到十进制(代码修改为递归?)
- java - 运行 java 文件时如何在 Tooltip 上显示结果 - IntelliJ IDEA
- bash - BASH:远程主机上的 ssh 访问变量结果
- python - ValueError:字段“id”需要一个数字,但得到“选择”
- java - JPA 未知 SqlResultSetMapping
- excel - 用户定义函数 - 迭代计算求和
- java - 数组未在 Java 中打印