可以...使用        [DllImport("user32.dll", CharSet = CharSet.Auto)]
        public extern static IntPtr SetParent(IntPtr hChild, IntPtr hParent);

解决方案 »

  1.   

    我使用  System.AddIn、System.AddIn.Hosting、System.AddIn.Pipeline 和 System.AddIn.Contract能从这方面说吗
      

  2.   

    现在是这样的, 发现插件后,调用接口,返回 from, 我把这个form, show出来,或放到mdi框架中现在两种方式我都遇到了问题直接show出来,没问题,但是随便点点,偶尔会莫名退出,没有抓住异常放到mdi框架中,
    会报“System.Windows.Forms.MdiClient+ControlCollection”未标记为可序列化。