I have a Parent form with menuitem to open a child form.Parent form should not be closed unless child form is closed. Is there any solution to this?
Hi Aravind,
Please refer on the following link.
http://alfasith.blogspot.in/2014/05/parent-shold-not-be-closed-unless-child.html
Thanks,
Hari
Call wait() for the menufucntion or formRun, in the clicked method of menuitem in the Parent form.
formRun.wait();
OR
menuFunction.wait();
Call element.wait() in Child form Run() method
In Child Form, Run method:
public void run()
{
super();
element.wait(true);
}