32 or 64 bit version of product: 64bit
Operating system: Windows 10 Enterprise (1809)
32 or 64 bit OS: 64bit
I am changing the BackColor of a textbox.
e.g.
Code: Select all
$textbox1.BackColor = 'Green'
Before I change it to the desired color I would like to be able to make a note of the current BackColor first. So I tried this:
Code: Select all
$textboxBackColorBefore = $textbox1.BackColor
Code: Select all
[System.Drawing.Color]
I then tried this:
Code: Select all
$textbox1.BackColor | Get-Member
# and this
$textboxBackColorBefore | Get-Member
I saw NO properties or Methods that I could use to get the desired value.
I would like to be able to reassign the previous BackColor so:
Code: Select all
$textbox1.BackColor = $textboxBackColorBefore
Can you help me here?