I have an application coded in C# and in the first window I enter some details in textboxes, combo boxes, radio buttons and a checkbox. When I click on the Next button, it goes to the second window and to do that, I use:
form2 f2 = new form2();
f2.show();
this.hide();
in that 2nd window, I have a Back button, which when clicked, goes to first window. To do that I use the code:
form1 f1 = new form1();
f1.show();
this.hide();
but the thing is, when I go to that window I lose all the data I entered. Is there an easy way to get this data back in to relevent controls without setting them one by one again?
Consider for the first form, when you want to show the second form
now for second form