i have three windows forms, i have a button in the form 1 and a button in the form2,
if form1 button is clicked, then it shows the form2 as
form2 f2 = new form2();
f2.show();
and the form1 is still in the background and visible,
and there is one more button on the form2 when that button is clicked the same event happen that form2 is running in background and form3 shows up,
and now when the form3 is shown i want to hide the form1
how can i do that?
is there any property that can help me to know which form is running in behind.