Change Text Color?

Epicor 10.1.600

Can someone point me in the direction on how to change the text color in a comment box? I was able to figure out how to change the border of the comments box to red in the properties via developer mode but can’t figure out how to change the actual text we type in the box to red also. I tried changing the property ‘forecolor’ to red for the comments box but the text still shows up in black when I type in it.

Thanks.

I’m guessing you tried this?

txtBox.Appearance.ForeColor = Color.Red;

You need to make sure that UseAppStyling is set to false for the desired control.

1 Like

Using the code did not work.

Setting the UseAppStyling to False got the text to show in Red but I lost my red border? If I set it back to True, the red border comes back but then I lose the red text.

Just manually set the border color too.

image

YourControl.BorderColor = Colors.Red;

Also, if this is a native control, you have to get a reference to it.

EpiTextBox textBox = (EpiTextBox)csm.GetNativeControlReference(“The Guid Here”);

1 Like

I did manually set the border color and the text to red, but toggling the appstyling either enables the red text and disables the red border or vice versa.