在两窗口相互多次实时传递 在Form1窗体中: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace TestTrance { public partial class Form1 : Form { Form2 fm2 = new Form2(); public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { fm2.strPoint += new Form2.GetMessage(fm2.fm2_msgPoint);//指向Form2的fm2_msgPoint()函数 fm2.fm2_msgPoint(this.textBox1.Text); } private void Form1_Load(object sender, EventArgs e) { fm2.Show(); fm2.txtPoint+=new Form2.GetMessage(fm2_txtPoint);//指向Form1的fm1_txtPoint()函数 } private void fm2_txtPoint(string str) { this.textBox1.Text = str; } } } 在Form2窗体中: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace TestTrance { public partial class Form2 : Form { public delegate void GetMessage(string str); public event GetMessage strPoint; public event GetMessage txtPoint; public Form2() { InitializeComponent(); } private void Form2_Load(object sender, EventArgs e) { } private void button1_Click(object sender, EventArgs e) { txtPoint(this.textBox1.Text); } public void fm2_msgPoint(string str) { this.textBox1.Text = str; } } } 运行结果如图: --------> <--------