Quantcast
Channel: SAPIEN Forums
Viewing all articles
Browse latest Browse all 555

PowerShell GUIs • Re: windowform background color to rgb or hex value

$
0
0
You can get set rbg colors using code similar to the following:

Code:

$Form.BackColor = [System.Drawing.Color]::FromArgb([int],[int],[int])
You can set hex colors using the following:

Code:

$Form.BackColor = [System.Drawing.ColorTranslator]::FromHtml("#161616")
These lines placed in the load of the form.

You cannot bold just one word in a label with just PowerShell.

Statistics: Posted by brittneyr — Wed Jun 26, 2024 7:53 am



Viewing all articles
Browse latest Browse all 555

Trending Articles