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

最新文章

  1. Linux 下源码包安装MariaDB
  2. SVN提交提示:working copy is not up-to-date解决方法
  3. 统计map上的read数量
  4. asp.net中Repeater控件用法笔记
  5. 5大AR应用窥探移动未来~你见过吗?
  6. if中可以使用那些作为判断条件呢?
  7. 如何高效的编写Verilog HDL——进阶版
  8. 关于Tomcat
  9. Xcode 命令行工具 Command Line Tools
  10. 第一个NHibernateDemo
  11. 枚举Enum 的常用方法
  12. 用户管理系统之class
  13. hadoop lzo应用
  14. VMware文章总结
  15. php截取中文字符串 GB2312 utf-8
  16. Linux中文件/文本的中文乱码解决方法
  17. Servlet之监听事件细究
  18. opencv-学习笔记(6)图像梯度Sobel以及canny边缘检测
  19. 【Codeforces549F】Yura and Developers [单调栈][二分]
  20. 【原创】IIS7.5优化,支持同时10万个请求

热门文章

  1. vs2015类中方法前的引用链接不显示的解决方案
  2. JS判断提交表单不能为空 等的验证
  3. shell入门-shell特性
  4. JS设置cookie、读取cookie、删除cookie(转)
  5. 一些奇怪的Javascript用法
  6. unreal3对象管理模块分析
  7. JavaScript学习系列6 -- JavaScript中的垃圾回收(内存释放)
  8. 开发一个android项目后的总结
  9. C#和Python 图片和base64的互转
  10. C#类和类的实例