C#怎么动态添加MDI子窗体,我利用“加载子窗体ToolStripMenuItem_clik事件完成,单机“添加子窗体”添加!

求代码!我是新手请各位高手指点!多谢!
2025-05-12 00:17:59
推荐回答(2个)
回答1:

ChildForm child=new ChildForm();
child.Parent=MDIForm;
child.show();

回答2:

创建窗体对象 比如 : a(窗体) t = new a();
t.show()