C#主窗口控件盖住子窗口控件,解决方法
http://topic.csdn.net/u/20090308/16/c87b7e42-2572-456d-bd4c-647719ce6f1c.html?509266204
usingSystem.Runtime.InteropServices;
[DllImport("user32")]
public static extern int SetParent(int hWndChild, int hWndNewParent);
Form2 f2 = new Form2();
f2.MdiParent = this;
f2.Show();
SetParent((int)f2.Handle, (int)this.Handle);
using System.Runtime.InteropServices;
[DllImport("user32")]
public static extern int SetParent(int hWndChild, int hWndNewParent);
Form2 f2 = new Form2();
f2.MdiParent = this;
f2.Show();
SetParent((int)f2.Handle, (int)this.Handle);
用微信扫描二维码
为博主 打个赏
金额随意 快来“打”我呀 要买枸杞当归补补~~