B
Boki
Hi All,
I can't pass data to another form:
in form2:
private void button1_Click(object sender, EventArgs e)
{
Form1 form_copy = new Form1();
form_copy.textBox1.Text = "DSFDSFDS";
this.Close();
}
the form2 will close after button click, but the textbox1 of form1
doesn't change anything.
textbox1 of form1 already set to public.
Please advice.
Best regards,
Boki.
I can't pass data to another form:
in form2:
private void button1_Click(object sender, EventArgs e)
{
Form1 form_copy = new Form1();
form_copy.textBox1.Text = "DSFDSFDS";
this.Close();
}
the form2 will close after button click, but the textbox1 of form1
doesn't change anything.
textbox1 of form1 already set to public.
Please advice.
Best regards,
Boki.