what I'm trying to do is to change the color of the text to red when the label's text meet the condition.The font really did change color but if the next output don't meet the requirement,the recent output turn to black like it supposed too but the problem is all the previous output also turn to black. I want to make the previous output maintain the red color instead turn to black. which part of the code did I do wrong?
If LblMsg.Text = "FAIL:Board Not Found. " Then
TxtResult3.Text = Session("empID")
TxtResult3.ForeColor = Drawing.Color.Red
Else
TxtResult3.Text = Session("empID")
TxtResult3.ForeColor = Drawing.Color.Black
End If
Aucun commentaire:
Enregistrer un commentaire