i have two forms which i want to move back and forth with without loosing the data that i have entered on both form, when i go back to form1 from form2 the data remains in form1, but when i go to form2 in which i have entered data before, the data are all gone, is there a solution to this?
first form:
public userform1()
{
InitializeComponent();
}
private void jThinButton1_Click(object sender, EventArgs e)
{
userform2 form2 = new userform2();
form2.Show();
this.Hide();
form2.Hide();
form2.ShowDialog();
this.Show();
second form:
private void jThinButton3_Click(object sender, EventArgs e)
{
this.DialogResult = DialogResult.OK;
}
going back to form2 from form1 works fine, but the problem is I loose the data I have entered in form2 when I click next in form1, I want to keep the entered data in form 2, is it possible?