我可能要疯了,但我似乎无法弄清楚如何在 Powershell 中的 ErrorProvider 上设置闪烁率。
错误提供程序定义为:
$Global:ErrorProvider = New-Object System.Windows.Forms.ErrorProvider
我尝试了各种不同的版本:
$ErrorProvider.BlinkStyle() = [System.Windows.Forms.ErrorBlinkStyle.NeverBlink]
或者
$ErrorProvider.SetBlinkStyle([System.Windows.Forms.ErrorBlinkStyle.NeverBlink])
没有成功!
这是我的第一个带有一些 Windows 窗体元素的 PS,所以我仍在摸索。