Lets see if I can explain-
I have a text box (rich text box) in a form. Inside the box, some data gets put in there- specifically insurance information.
Normally, the box doesn't need to change color to alert the user there's a problem with the text that's inside, because the information is usually good.
But there are a few phrases that need to alert the user there's a problem.
For example, if the words "Not Found AS OF:" appear anywhere in the box, I need the background to show red. Or, if the words "Letter #1" appear in the box, it needs to show red. Absent of any key words, the box is normal (white).
I thought a simple If/Else statement would do the trick, but it's not.
If txtInsurance.Text = "Not Found: AS OF" Then
txtInsurance.ForeColor = Color.Red
Else
txtInsurance.ForeColor = Color.Black
End If
I know that says ForeColor, I'm playing around with fore vs BackColor.
Can anyone help?