try var Form2 new Form2 if Form2 Created Form2 new Form2 Form2 Show th

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
try
{
var Form2 = new Form2();
if (!Form2.Created)
{
Form2 = new Form2();
}
Form2.Show(this);
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
finally
{
this.Hide();
}