Peter T
2007-03-08 12:38:33 UTC
The single form is opened modeless from a dll's entry class. In the button
close I want it destroyed, which 'Unload Me' does not do, and nor does 'Set
myFormName (or an external ref to the form) = Nothing'
I guess the solution must have been demonstrated in this ng, apologies if it
has but I can't find it. I have though found numerous descriptions as to
what's going on, including "Life Cycle of Visual Basic Forms". Also,
recommendations from outside the form best to set any ref to it and/or
FormName = Nothing. But I can't see how that can work if called directly or
indirectly from inside the modeless form. Ideally I would like to see the
form's terminate event fire.
Regards,
Peter T
close I want it destroyed, which 'Unload Me' does not do, and nor does 'Set
myFormName (or an external ref to the form) = Nothing'
I guess the solution must have been demonstrated in this ng, apologies if it
has but I can't find it. I have though found numerous descriptions as to
what's going on, including "Life Cycle of Visual Basic Forms". Also,
recommendations from outside the form best to set any ref to it and/or
FormName = Nothing. But I can't see how that can work if called directly or
indirectly from inside the modeless form. Ideally I would like to see the
form's terminate event fire.
Regards,
Peter T