Results 1 to 6 of 6

Thread: Form UNLOAD question - vbFormOwner?? [RESOLVED - always search the FORUM first!]

Threaded View

  1. #1

    Thread Starter
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    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...
    Last edited by szlamany; Sep 17th, 2004 at 02:56 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width