本帖最后由 yezeguo 于 2012-06-04 20:02:58 编辑

解决方案 »

  1.   

    FormFather1 ff1;
    FormFather2 ff2;
    if ((ff1 = 子窗体.Owner as FormFather1) != null)
    {
        // ff1 打开的;
    }
    else if ((ff2 = 子窗体.Owner as FormFather2) != null)
    {
        // ff2 打开的;
    }
      

  2.   

    在主窗体定义一个 public static string where="";当用户单击某一个子窗口,在单击事件里把where编程窗口一。
    当用户单机第二个子窗口,where变成窗口二。在你想要的地方写  if(where=="窗口一")
    {
    //执行相应事件,第二个窗口也和这一样。}