首页 > 解决方案 > 如何在应用程序启动时在第一种形式的菜单栏下显示第二种形式?

问题描述

输出应该像 --> Snapshot: SnapShot

标签: c#winforms

解决方案


You should indicate who is the parent form to be able to contain the second form within the first one. For example:

this.IsMdiContainer = true;
Form Form2 = new Form();
Form2.MdiParent = this;
Form2.Show();

推荐阅读