如frmMain ,frmA ,frmB在frmMain中
public frmA fA;
public frmB fB;
public frmMain()
{
fA = new frmA { TopLevel = false, Visible = true };
pnlA.Controls.Add(fA);
fB = new frmB { TopLevel = false, Visible = true, Width = pnlb.Width, Height = pnlb.Height };
pnlB.Controls.Add(fB);}
show在同一個form中
在frmA中
要如何取得frmB的owner
把text1.text的值傳送到B的text1.text上
public frmA fA;
public frmB fB;
public frmMain()
{
fA = new frmA { TopLevel = false, Visible = true };
pnlA.Controls.Add(fA);
fB = new frmB { TopLevel = false, Visible = true, Width = pnlb.Width, Height = pnlb.Height };
pnlB.Controls.Add(fB);}
show在同一個form中
在frmA中
要如何取得frmB的owner
把text1.text的值傳送到B的text1.text上
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货