Hi,
Is there any ways to show second Child Form from First Child Form in MDI Application, so that the First Child will be temporary disable until the second one closed? And still can access other child form (except the First one) in that application..
1. You'll have to create the Second Child with the main form (MDIParent) as the owner, not the First Child.
2. When you open the Second Child, you could set a flag in the First Child, possibly using the Tag property of the TForm object. In the OnActivate of the First Child, you look to see if the flag is set and switch focus to the Second Child instead of showing the First Child.
3. Alternatively, you could use the MDIChildren property of the MDIParent to determine if the Second Child is available and switch focus from there.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.