void TextBox1_TextChanged(object sender, EventArgs e) { TextBox2.Text = TextBox1.Text; }
TextBox1.TextChanged += (s, _) => { if (!TextBox2.Focused && TextBox1.Text != TextBox2.Text) { TextBox2.Text = TextBox1.Text; } }; TextBox2.TextChanged += (s, _) => { if (!TextBox1.Focused && TextBox2.Text != TextBox1.Text) { TextBox1.Text = TextBox2.Text; } };
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)