Make a constructor for form2 that accept string and in calling new form2 pass form1.frm1Textbox.text to contructor then set it to form2.frm2Textbox.text
Form2 form = new Form2(frm1Textbox.text);
in form2 constructor
public class Form2 : Form
{
public Form2(string text)
{
frm2Textbox.Text = text;
}
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…