62,050
社区成员
发帖
与我相关
我的任务
分享
class Form1()
{
Form2 form2=new Form2();
form2.Name="your name";
form2.show();
}
public string Name{get;set;}
class Form2()
{
}
protected override void initizled()
{
//在重写的初始化方法里面使用收到的传值
//this.Name
}
class Form1()
{
Form2 form2=new Form2("test");
form2.show();
}
class Form2(string str)
{
//这里就可以接收到
}