开发者

How can Create MDI Forms

开发者 https://www.devze.com 2023-04-11 00:51 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号