I was given rgb and hex values and can't find how to set the form backcolor to either of those values
unrelated but also is there a way in a text string being displayed on a label control to Bold just 1 word
Thanks so much
windowform background color to rgb or hex value
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.
This forum is a space to discuss coding involving Graphical User Interfaces (GUI) in PowerShell or using WinForms controls, and technical issues related to development.
- Question about a licensed SAPIEN product? Post here: Product Support for Registered Users
- Question about a trial SAPIEN product? Post here: Former and Future Customers - Questions
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.
This forum is a space to discuss coding involving Graphical User Interfaces (GUI) in PowerShell or using WinForms controls, and technical issues related to development.
- Question about a licensed SAPIEN product? Post here: Product Support for Registered Users
- Question about a trial SAPIEN product? Post here: Former and Future Customers - Questions
- ocsscott6969
- Posts: 49
- Last visit: Mon Jun 10, 2024 2:42 pm
Re: windowform background color to rgb or hex value
You can get set rbg colors using code similar to the following:
You can set hex colors using the following:
These lines placed in the load of the form.
You cannot bold just one word in a label with just PowerShell.
- $Form.BackColor = [System.Drawing.Color]::FromArgb([int],[int],[int])
- $Form.BackColor = [System.Drawing.ColorTranslator]::FromHtml("#161616")
You cannot bold just one word in a label with just PowerShell.
Brittney
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.