Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 16036

Close a child form of MDI Form on Load

$
0
0
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.

Viewing all articles
Browse latest Browse all 16036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>