T
Tom
Is there ANY easy way to close a MDI Child form in the middle of it's load?
For instance, during the Load event I find a need to close the form (for
whatever reason - maybe the user isn't ready for it yet, or it displays
another form and they hit cancel). In any event, I need to be able to cause
that MDI Child form to close. Just sticking Me.Close in there won't work,
generates an error (note however, that on a NON-MDI form this seems to work
fine - go figure). I thought I could 'catch' the error in an error block
from the main MDI form; that does work - however, it must leave something
open because trying to close the main MDI form after this by using the X
button in the title bar no longer works.
Any suggestions?
Tom
For instance, during the Load event I find a need to close the form (for
whatever reason - maybe the user isn't ready for it yet, or it displays
another form and they hit cancel). In any event, I need to be able to cause
that MDI Child form to close. Just sticking Me.Close in there won't work,
generates an error (note however, that on a NON-MDI form this seems to work
fine - go figure). I thought I could 'catch' the error in an error block
from the main MDI form; that does work - however, it must leave something
open because trying to close the main MDI form after this by using the X
button in the title bar no longer works.
Any suggestions?
Tom