Form UNLOAD question - vbFormOwner?? [RESOLVED - always search the FORUM first!]
I've got a MDI Parent/Child application.
In it we have a non-child form called frmLookup, where we store "lookup" values in a tree-view, that were used in the child forms.
We load this form initially from the MDIForm_Load event - but don't show it.
We fill the tree-view from the child forms.
We have a QUERYUNLOAD event for this frmLookup that if the unload mode = 0 (vbFormControlMenu), we simply cancel the unload and hide the form. That way the tree-view values are saved.
I've got a situation where the frmLookup gets put up on the screen by the "second" child form. Now when that "second" child form gets closed, it's triggering an unload mode = 5 (vbFormOwner) event on the frmLookup form.
I want the MDI PARENT to own this form, so it never leaves memory until the parent is closed.
How do I do this?
Thanks...