private void yourTextBox_TextChanged(object sender, EventArgs e) { string value1 = textBox1.Text; string value2 = textBox2.Text; // change the names here // now you can compare value1 and value2 the way you want, for example: if (value1 == value2) { // text is equal } else { // text is not equal } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)