110,574
社区成员
发帖
与我相关
我的任务
分享
private void button1_Click(object sender, EventArgs e)
{
Form2 frm = new Form2();
frm.write = new Form2.Write(Function);
frm.Show();
}
private void Function(object sender)
{
this.textBox1.Text = ((TextBox)sender).Text;
}
public delegate void Write(object sender);
public Write write;
private void textBox1_TextChanged(object sender, EventArgs e)
{
if (write != null)
write(this.textBox1);
}