开发者

Simple Mdi Parent and MdiChild Winforms?

开发者 https://www.devze.com 2023-01-22 17:56 出处:网络
I have three forms 1 is Mdiparent and the other two is simple form (Form1 and Form2). Parent: var frmForm1 = new Form1{ MdiParent = this};

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

精彩评论

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