Powershell
$checkbox1.flatstyle = 'flat'
$checkbox1.flatappearance.checkedbackcolor = 'green'
I use the Sapien Powershell Studio 2020.
Nothing changed when I configure the second line.
The same with this code:
$checkbox1.flatappearance.checkedbackcolor = [system.drawing.color]::fromARGB(255,...)
Checkbox flatappearance.checkedbackcolor didn't work
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: Checkbox flatappearance.checkedbackcolor didn't work
Hi jvierra,
thanks for your answer.
The problem ist, that there ist no effect, when I configured it in the "Designer"-Area of the Powershell Studio. It is no problem to Change the "FlatStyle" to "Flat", but the "FlatAppearance" didn't work.
I hope, you understand me, my english ist not so good...
Best regards
Ralf.
thanks for your answer.
The problem ist, that there ist no effect, when I configured it in the "Designer"-Area of the Powershell Studio. It is no problem to Change the "FlatStyle" to "Flat", but the "FlatAppearance" didn't work.
I hope, you understand me, my english ist not so good...
Best regards
Ralf.
Re: Checkbox flatappearance.checkedbackcolor didn't work
... I can change the "checkedbackcolor", but when I start the script, there is not the new color.
Re: Checkbox flatappearance.checkedbackcolor didn't work
Please read the following link very carefully. Be aware that the backcolor of the Checkbox is dynamic and sets only when the CheckBox is checked AND COMMITED
https://stackoverflow.com/questions/544 ... or-uncheck.
https://stackoverflow.com/questions/544 ... or-uncheck.