C# MDI 子窗体被父窗体控件挡住

时间:2014-08-22 12:14:46   收藏:0   阅读:252

 

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

 

C# MDI 子窗体被父窗体控件挡住,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!