MDI child forms leave control boxes after they are closed

  • Thread starter Thread starter David Burson
  • Start date Start date
D

David Burson

Hi,

I have an MDI app with some non-trivial child forms
(tabs, maybe 50 controls or so). When I open several
child forms maximized, then close them, the control boxes
remain in place as if the child form is still open.
Worse, I have the control boxes stacking up horizontally
across the top of the parent form - if I open 3 and close
3 child forms, then I have 3 control boxes showing in the
parent form.

I'm guessing some memory isn't being freed properly, but
I really don't know what to do, I've been unable to track
down what could be causing this. Seems to me when the
user clicks the little x, the form should go away,
including the x!

Any ideas?

Thanks,
David
 
Are the forms staying on top of the MDI parent or on top of other children?
Only thing I can think of is whichever form is under the ones that are
closed aren't redrawing because they are busy with something else. If the
bottom form is in a loop doing another task, put a DoEvents (vb) in it.

Stephen
 
Thanks for the idea, but all children are closed. The only form left
open is the MDI parent. Any other thoughts how to track this down?
David
 
Back
Top