, , .
, , , #.:)
this.textBox1.Text = "";
this.textBox1 = this.textBox2 = this.textBox3 = this.textBox4;
-, , textBox1, textBox2 .. TextBox, Form. TextBox Text, string. , , Text TextBox "".
, TextBox. , , textBox<n> TextBox textBox4. textBox4.Text , , , TextBoxes , TextBox Text.
, (textBox1 = textBox2) (textBox1.Text = textBox2.Text). TextBox. TextBox, , .
In short, given the (hopefully not too confusing) explanation, your code, as indicated, should be as follows:
this.textBox1.Text = "";
this.textBox4.Text = this.textBox3.Text = this.textBox2.Text = this.textBox1.Text;
But strictly speaking, you are much better off using a solution like @Tim Jarvis's or @Brandon , which work no matter how many text fields you have in your form.
Good luck! :)
Dan j source
share