关于Mdi窗口-父窗口上的控件把子窗口的挡住的问题

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

posted @ 2014-08-12 10:39  阿冠  阅读(588)  评论(0编辑  收藏  举报