Hi.
I'm on a tricky situation here.
I need to close a child form of MDI, if the form has an error when Loading.
Apparently this cannot be done inside the Load event of the child form ( as me.close() ).
I though about closing in the _show event but since the form is async, the event fires before load completes.
Moving all the code from the Load event is quite difficult.
So any opinions?
What I am going to do if I can't figure this out is setting a global parameter on the Mdi form when child completes load. If it is true, do nothing, if false, then close the child, but I'm wondering if there is a solution for fix this strictly on the child form.
Thanks.
I'm on a tricky situation here.
I need to close a child form of MDI, if the form has an error when Loading.
Apparently this cannot be done inside the Load event of the child form ( as me.close() ).
I though about closing in the _show event but since the form is async, the event fires before load completes.
Moving all the code from the Load event is quite difficult.
So any opinions?
What I am going to do if I can't figure this out is setting a global parameter on the Mdi form when child completes load. If it is true, do nothing, if false, then close the child, but I'm wondering if there is a solution for fix this strictly on the child form.
Thanks.