If you want to pass data to form2
from form1
without passing like new form(sting "data");
Do like that in form 1
using (Form2 form2= new Form2())
{
form2.ReturnValue1 = "lalala";
form2.ShowDialog();
}
in form 2 add
public string ReturnValue1 { get; set; }
private void form2_Load(object sender, EventArgs e)
{
MessageBox.Show(ReturnValue1);
}
Also you can use value in form1
like this if you want to swap something in form1
just in form1
textbox.Text =form2.ReturnValue1