How do I change the font color in a Powershell form?

Hello Scripting Guys!

I am back with another question for you. I am working on a form to create external contacts and have it complete. I am working validate the fields and have that almost complete. The issue is that while my "*" pop up for incorrect fields or fields that are not completed, I cant seem to find a way to change to font color to "RED".  I have seen online where they are talking about changing the entire forms font color but I only need a few things changed. Is there a way to specifically target a label and change the font color? Any help would be appreciate.

Thanks again

Rich

June 30th, 2015 1:46pm

Hi,

You are talking about this ? :

-ForegroundColor Red

For example :

Free Windows Admin Tool Kit Click here and download it now
June 30th, 2015 2:04pm

    $textbox1.ForeColor='yellow'
    $textbox1.BackColor='darkblue'
June 30th, 2015 2:19pm

Thanks guys they both work like a charm!
Free Windows Admin Tool Kit Click here and download it now
June 30th, 2015 2:32pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics