第1个回答 2017-07-05
using System.Runtime.InteropServices;
[DllImport("user32")]
public static externint SetParent(int hWndChild, int hWndNewParent);
Form2 f2 = new Form2();
f2.MdiParent = this;
f2.Show();
SetParent((int)f2.Handle, (int)this.Handle);
放入你的主页面去本回答被网友采纳