如何在Windows窗体中实现父子 [英] how to implement parent child in windows form
本文介绍了如何在Windows窗体中实现父子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在父窗体属性窗口中以Windows窗体
解决方案
实现主细节,例如Form1 = Parent Form2 = Child
转到:
IsMdiContainer并设置为true
然后在调用子表单时使用此代码
Form2 child = new Form2();
child。显示();
child.MdiParent = this;
检查此使用C#介绍MDI表单 [ ^
How to implement master details in windows form
解决方案
in the parent forms Properties window e.g. Form1 = Parent Form2 = Child
go to:
IsMdiContainer and set it to true
then when calling up the child form use this code
Form2 child = new Form2();
child .Show();
child.MdiParent = this;
check this Introduction to MDI Forms with C#[^]
这篇关于如何在Windows窗体中实现父子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文