子表单不以父表单格式化 [英] Child forms Not getting tiled in parent form

查看:66
本文介绍了子表单不以父表单格式化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

级联按钮背后的代码---



this.LayoutMdi(MdiLayout.TileHorizo​​ntal);

解决方案

< blockquote>你似乎没有设置子表单的 MdiParent 属性,例如

 Form2 f2 = new窗体2(); 
f2.MdiParent = this;
f2.Show();


code behind cascade button---

this.LayoutMdi(MdiLayout.TileHorizontal);

解决方案

You don''t appear to have set the MdiParent property of the child forms e.g.

Form2 f2 = new Form2();
f2.MdiParent = this;
f2.Show();


这篇关于子表单不以父表单格式化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆