Results 1 to 7 of 7

Thread: [RESOLVED] Check Open and ACtive MDI CHild

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2005
    Posts
    145

    Resolved [RESOLVED] Check Open and ACtive MDI CHild

    hi,

    As my thread subject, how to check open and Active Mdi Child?

    Thanks

  2. #2
    Frenzied Member d3gerald's Avatar
    Join Date
    Jan 2006
    Posts
    1,348

    Re: Check Open and ACtive MDI CHild

    have you tried using the activeform property of the mdi?
    On error goto Trap

    Trap:
    in case of emergency, drop the case...

    ****************************************
    If this post has been resolved. Please mark it as "Resolved" by going through the "Thread Tools" above and clicking on the "Mark Thread Resolved " option.
    if a post is helpful to you, Please Rate it by clicking on the Rate link right below the avatar

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 2005
    Posts
    145

    Re: Check Open and ACtive MDI CHild

    not yet,

    Do you mind to tell how to "using" it?

  4. #4
    Frenzied Member d3gerald's Avatar
    Join Date
    Jan 2006
    Posts
    1,348

    Re: Check Open and ACtive MDI CHild

    to unload the active mdi child, use this code

    VB Code:
    1. if not mdi.Activeform is Nothing then
    2.     unload mdi.ActiveForm
    3. end if

    you can create a menu that will list all the active windows in your mdi. just check the windowlist property of the menu. at runtime, it will list all the mdi child forms that you open and mark the active mdi child form with a check
    On error goto Trap

    Trap:
    in case of emergency, drop the case...

    ****************************************
    If this post has been resolved. Please mark it as "Resolved" by going through the "Thread Tools" above and clicking on the "Mark Thread Resolved " option.
    if a post is helpful to you, Please Rate it by clicking on the Rate link right below the avatar

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Nov 2005
    Posts
    145

    Re: Check Open and ACtive MDI CHild

    I got it, but how to get all open MDIchild form ? just like in window list property.

  6. #6
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    Re: Check Open and ACtive MDI CHild

    VB Code:
    1. Dim F As Form
    2. For Each F In Forms
    3.     If F.MDIChild Then
    4.         ' It's a loaded MDIChild form
    5.     End If
    6. Next F

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Nov 2005
    Posts
    145

    Re: Check Open and ACtive MDI CHild

    Thank's d3gerald, bushmobile..

    I got it all now

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