using System.Runtime.InteropServices; [DllImport("user32")] public static extern int SetParent(int hWndChild, int hWndNewParent); ///temp2是你的子form temp2.MdiParent = this; temp2.Show(); SetParent((int)temp2.Handle, (int)this.Handle);
原文:http://topic.csdn.net/u/20100116/22/b45780e4-1b81-403a-921d-d6e7e30c96ee.html