BrasilianGuy
IS-IT--Management
HI everybody
I'm using the following code to find a especific string in a txt file and then change the properties of the object. the text is there but it's not changing the textbox color as I want it to do.
StreamReader tr = new StreamReader("Numbers.txt");
Regex rx = new Regex(tr.ToString());
string thisbox = "14";
if (rx.IsMatch(thisbox))
{
this.textBox1.BackColor = Color.FromKnownColor(KnownColor.LightSalmon);
}
tr.Close();
Thanks
I'm using the following code to find a especific string in a txt file and then change the properties of the object. the text is there but it's not changing the textbox color as I want it to do.
StreamReader tr = new StreamReader("Numbers.txt");
Regex rx = new Regex(tr.ToString());
string thisbox = "14";
if (rx.IsMatch(thisbox))
{
this.textBox1.BackColor = Color.FromKnownColor(KnownColor.LightSalmon);
}
tr.Close();
Thanks