Results 1 to 3 of 3

Thread: Identify an MDIform in the Forms collection? [Resolved]

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2001
    Location
    N42 29.340 W71 53.215
    Posts
    422

    Question Identify an MDIform in the Forms collection? [Resolved]

    How can I identify an MDIform (parent) when I'm looping through the forms collection?

    Here's the problem:

    When I loop to find the child forms:
    For each frm in Forms
    If frm.MDIChild Then ...

    The 2nd line there fails when it hits the MDI "parent" since it has no .MDIChild property to check!

    So, what I'd like to do is something like:
    For each frm in Forms
    If "NOT an MDI parent form" then
    If frm.MDIChild Then ...


    Thanks, DaveBo
    Last edited by DaveBo; Mar 4th, 2004 at 01:57 PM.
    "The wise man doesn't know all the answers, but he knows where to find them."
    VBForums is one place, but for the really important stuff ... here's a clue 1Tim3:15

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