在Form窗体中添加两个文本框,textBox1和textBox2,在textbox1的TextChanged事件中吧textbox的内容给textbox2 private void textBox1_TextChanged(object sender, EventArgs e) { this.textBox2.Text = this.textBox1.Text; }