Hi ! I need some help With a code to change the color in textbox based on what type of Words or text that is in the textbox.
Like a triagesystem: if it stands emergency i want to get the textbox color to turn into red. and if it stands something else the textbox is turn to green
Thanks if someone can help me With this.

Priyaranjan K SRank #45 · 32.5K reputationPosted Oct 8, 2015, 9:45 AM EDT
{
if (textBox1.Text.Equals("emergency"))
textBox1.ForeColor = Color.Red;
else
if (textBox1.Text.Equals("high"))
textBox1.ForeColor = Color.Blue;
}
Jitendra KumarRank #760 · 3K reputationPosted Oct 8, 2015, 8:24 AM EDT
Rajeesh MenothRank #118 · 18.4K reputationPosted Oct 8, 2015, 8:48 AM EDT
niels tangen3 reputationPosted Oct 8, 2015, 11:41 AM EDT