[英]How to create Window Form inside another one?
I need to embedded window form inside another one like this 我需要在这样的另一个内嵌窗口窗体
我相信你想查找MDI(多文档界面)。
The following might do what you want. 以下可能会做你想要的。
ChildForm
is the form that you want to place inside of ParentForm
. ChildForm
是要内放置形式ParentForm
。
ChildForm.TopLevel = false;
ParentForm.Controls.Add(ChildForm);
ChildForm.Show();
Note that you might have to play with the Location
of the child form. 请注意,您可能必须使用子表单的
Location
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.