hi
in the main form class ((Form1)) declare
public static bool exist =false;
on menu click event type the following code
if(!exist)
{
Form2 newFrm =new Form2();
newFrm.ShowDialog();
exist=True;
}
on Form2 on FormClosing Event type the following code
Form1.exist=false;
best regards
kiani mehdi
|