c#中设置父窗体时父窗体上有许多控件,挡住了子窗体!怎么让子窗体在父窗体的控件上面!

如题所述

第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);

放入你的主页面去本回答被网友采纳
第2个回答  2015-05-06
把他们放在一个容器里面!
相似回答