简体   繁体   English

如何在另一个窗口内创建窗体?

[英]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.

相关问题 如何在 WPF 内部移动另一个 window,当一个被移动时? - How to move another window inside of WPF, when one is being moved? 如何将“可见性窗口”属性从一种形式更改为另一种形式? - How to Change a Visibility Window property from the one form to another? 如何在Visual Studio 2015/2017的自定义工具窗口中创建窗口表单? - How to create window form inside custom tool window in visual studio 2015/2017? 如何在没有弹出窗口的情况下在另一个表单中打开一个表单 - How to open one form inside another form without in pop-up 如何使用c#窗口形式的progressBar将多个文件从一个目录复制到另一个目录 - how to copy multiple files from one directory to another with progressBar in c# window form 如何在另一个表单任务中调用一个表单 - How to invoke a form inside another form task 将C#Windows窗体居中放置在另一个窗口中 - Center a C# Windows Form inside another window 如何绘制另一个窗口的形式 - How to draw in another window's form 如何将一种形式置于另一种形式之上? - How to top one form on another? 如何找到另一种形式的一种形式的DataGridView? - How to find DataGridView of one form in another form?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM