有没有办法从其中的表单向 mdi 表单添加表单?

Is there a way to add a form to a mdi form from a form which is inside it?

我正在尝试向我的 mdi-container 添加一个已经添加到其中的表单,但这是不可能的(我并不是说要显示我的表单意味着将其添加到 mdi 容器中) 你知道这怎么可能吗? 谢谢

如果我对你的问题理解正确,你可以这样做:

// Button on MDI child.
private void AddFormButton_Click(object sender, EventArgs e)
{
    var newChildForm = new SomeForm();
    newChildForm.MdiParent = this.MdiParent;
    newChildForm.Show();
}