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 SPosted Oct 8, 2015, 1:45 PM
{
if (textBox1.Text.Equals("emergency"))
textBox1.ForeColor = Color.Red;
else
if (textBox1.Text.Equals("high"))
textBox1.ForeColor = Color.Blue;
}
niels tangenPosted Oct 8, 2015, 3:41 PM
Rajeesh MenothPosted Oct 8, 2015, 12:48 PM
Jitendra KumarPosted Oct 8, 2015, 12:24 PM