c#在form1里建了Form2的多个实例,在form2中怎么修改这个newform[i].text?
在form1里建了Form2的多个实例(代码如下),在form2中怎么修改newform[i].text?publicpartialclassForm1:Form{pri...
在form1里建了Form2的多个实例(代码如下),在form2中怎么修改newform[i].text?
public partial class Form1 : Form
{
private string captionstring;
public Form2[] newform = new Form2[254];
private void Form1_Load(object sender, EventArgs e)
{
for (int i=0; i < 10; i++)
{
newform[i] = new Form2();
}
}
} 展开
public partial class Form1 : Form
{
private string captionstring;
public Form2[] newform = new Form2[254];
private void Form1_Load(object sender, EventArgs e)
{
for (int i=0; i < 10; i++)
{
newform[i] = new Form2();
}
}
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询