I have the following problem.
For example there is a main form and it is a parent to all others. It creates a child form and hides. I want the main form to show when the child is closed. I've done this with creatin FormClose event of the child but in the parent form and it calls a function in the parent form, which shows it. So far so good.
The problem is:
When the main form creates a child 1 and the child 1 creates its own child 2 and sometimes child 1 closes this there is no way to show the main form. The other thing is, that somtimes child 2 can be a irect child of the main form, so I can't know who will be creating it.