You are creating a new Form1 every time you close Form2. Just pass a reference to Form2 instead.
If you need more explaining let me know and I will give you an example of how to accomplish this.
EDIT:
OK here is an example of a way to accomplish this.
Add this variable to your Form2 class "
private Form1 form1;
and in your Form2 constructor do this:
public Form2(Form1 form1)
{
this.form1 = form1;
}
then in your Form2_FormClosed event handler do this:
private void Form2_FormClosed(object sender, FormClosedEventArgs e)
{
form1.Show();
}
EDIT 2:
Some sample code:
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
this.Hide();
Form2 f2 = new Form2(this);
f2.Show();
}
}
public partial class Form2 : Form
{
Form1 form1;
public Form2(Form1 form1)
{
InitializeComponent();
this.form1 = form1;
}
private void Form2_Load(object sender, EventArgs e)
{
}
private void Form2_FormClosed(object sender, FormClosedEventArgs e)
{
form1.Show();
}
}
Hope this will help you understand.