
1个回答
展开全部
在form1中的所有textbox的事件中添加以下代码:
Form2 frm=new Form2();
frm.setLabelText(textbox.Text);
在Form2中添加公共方法setLabelText(string text)
添加代码:this.labl.Text=text;
Form2 frm=new Form2();
frm.setLabelText(textbox.Text);
在Form2中添加公共方法setLabelText(string text)
添加代码:this.labl.Text=text;
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询