I have two differents forms form1
and form2
. When I insert text into textbox on form2
and confirm it whit button, then form1
creates new (opens up) form1
whit updated data, instead of updating exsisting form.
private void button1_Click(object sender, EventArgs e)
{
//This is my problem
text = textBox1.Text;
new Form1().Show();
this.Close();
}
Is there any way to change new
to update
? And I'm new to forms.
There is photo example of what I try to do.