需要帮助。想为我的表格制作透明的comboBox,但不知道如何。
Add-Type -AssemblyName System.Windows.Forms
$Form = New-Object system.Windows.Forms.Form
$comboBox = New-Object Windows.Forms.ComboBox
$comboBox.Size = New-Object Drawing.Size(200, 30)
$comboBox.Location = New-Object Drawing.Point(10, 10)
# What to write here for transparent?
$Form.Add_Shown({$Form.Activate()})
$result = $Form.ShowDialog()
答案 0 :(得分:1)
PowerShell ComboBoxs
不支持透明背景颜色。
当我使用SAPIEN's PowerShell Studio
尝试创建透明combobox
时,我收到以下错误:
但您可以将combobox
设置为您喜欢的任何其他颜色。