在form2中添加一个属性
Form1 instanceForm1;
Form1 InstanceForm1
{
   set { instanceForm1 = value;}
}在显示Form2之前,设置InstanceForm1。Form2 f2 = new Form2();
f2.InstanceForm1 = this;
f2.show();在Form2的显示代码中写入:
this.instanceForm1.Enabled = false;在Form2的关闭代码中写入:
this.instanceForm1.Enabled = true;