开发者

Simple Mdi Parent and MdiChild Winforms?

I have three forms 1 is Mdiparent and the other two is simple form (Form1 and Form2).

Parent:

var frmForm1 = new Form1{ MdiParent = this};
frmFo开发者_JS百科rm1.Show();

Form1 : var MParent = new Parent(); var frmForm2 = new Form2{ MdiParent = MParent}; frmForm2.Show();

My Problem is if i Show Form2 from Form1 it goes outside the MdiParent.


I just got the answer.

var frmForm2 = new Form2{ MdiParent =This.MParent};
 frmForm2.Show();
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜