开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜