How can Create MDI Forms
I am using C# I want code to Create MDI Child Forms. I want to Open a child clas开发者_Go百科s from Main Form Menu Item.
You simply need to set the MdiParent
property of the child form.
MyChildForm child = new MyChildForm();
child.MdiParent = this;//where 'this' refers to your main form
child.Show();
And you also need to have set IsMDIContainer = true
for your main form.
There is a walkthrough of the basics on MSDN.
精彩评论