When I close my MDI form, the program doesn't finish. As far as I can tell all other forms are unloaded and there is no code executing.

I have used Set FormXXX=Nothing and Unload FormXXX to no avail

Any ideas??