C#打开一窗体,同时设为主窗体窗体的子窗体
展开全部
FormMain
窗体中:
Form1
form
=
new
Form1();
form.MdiParent
=供涪垛皇艹郝讹酮番捆
this;
form.Show();
Form1窗体中:
Form2
form
=
new
Form2();
form.MdiParent
=
this.MdiParent;
//父窗体相同
form.Show();
this.visible
=
false;
窗体中:
Form1
form
=
new
Form1();
form.MdiParent
=供涪垛皇艹郝讹酮番捆
this;
form.Show();
Form1窗体中:
Form2
form
=
new
Form2();
form.MdiParent
=
this.MdiParent;
//父窗体相同
form.Show();
this.visible
=
false;
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询