110,545
社区成员
发帖
与我相关
我的任务
分享
//主窗体
string str1= ff.listView2.SelectedItems[0].Text;
string str2= ff.listView2.SelectedItems[0].SubItems[1].Text;
string str3=ff.listView2.SelectedItems[0].SubItems[2].Text;
Form2 frm=new Form2 (str1,str2,str3);//子窗体
frm.Show();
//子窗体Form2
string str1,str2,str3;
public Form2(str1,str2,str3)
{
this.str1=str1;
this.str2=str2;
this.str3=str3;
}
public void Form2_Load(object sender, EventArgs e)
{
textBox1.Text = str1;
textBox2.Text = str2;
textBox3.Text=str3;
}