Form1为父窗体:

以下是FORM1

   
   
   
   
  1. public void Run() 
  2.         { 
  3.             textBox1.Clear(); 
  4.         } 
  5.         private void button1_Click(object sender, EventArgs e) 
  6.         { 
  7.             Form2 fm2 = new Form2(); 
  8.             fm2.Clear += new Form2.ClearText(Run); 
  9.             fm2.Show(); 
  10.         } 

Clear为FORM2中的事件,ClearText为FORM2中的委托

以下是FORM2(子窗体)

 

 

   
   
   
   
  1.         public delegate void ClearText(); 
  2. public event ClearText Clear; 
  3.         private void button1_Click(object sender, EventArgs e) 
  4.         { 
  5.             Clear(); 
  6.         }