Click to See Complete Forum and Search --> : MDI Children


Cakkie
March 29th, 2001, 02:33 AM
Is there a way to detect if there are any child windows loaded when an MDI form unloads?

Tom Cannaerts
slisse@planetinternet.be

The best way to escape a problem, is to solve it.

Vijooo
March 29th, 2001, 03:37 AM
Hi
There is a way to check that.

Place the code in the Unload event of ur MDI Form

For i = 0 To Forms.Count - 1
If Forms(i).MDIChild Then
Unload Forms(i)
End If
Next

Take Care Bye Bye