CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: MDI Children

  1. #1
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    MDI Children

    Is there a way to detect if there are any child windows loaded when an MDI form unloads?

    Tom Cannaerts
    [email protected]

    The best way to escape a problem, is to solve it.
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  2. #2
    Join Date
    Mar 2001
    Posts
    90

    Re: MDI Children


    Hi
    There is a way to check that.

    Place the code in the Unload event of ur MDI Form

    For i = 0 To Forms.Count - 1
    If Forms(i).MDIChild Then
    Unload Forms(i)
    End If
    Next

    Take Care Bye Bye



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

Featured