private void TextBox1_TextChanged(object sender, System.EventArgs e)
{
string xxx=TextBox1.Text;
TextBox2.Text=xxx;
}
搞複雜點
private void textBox1_TextChanged(object sender, System.EventArgs e)
{
string ss = this.textBox1.Text;
refreshHandle re=new refreshHandle(ss);
re();
}
delegate void refreshHandle(string ss)
private void refresh( string ss)
{
this.textBox2.Text = ss;
}