Results 1 to 2 of 2

Thread: Not Familiar with MDI (need Help)

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2005
    Posts
    50

    Not Familiar with MDI (need Help)

    VB Code:
    1. Dim frm As Form
    2.       For Each frm In Me.Parent.FindForm.MdiChildren
    3.       frm.Close()
    4. Next

    This code is written on a mdichild and when i run it, the parent/mdi container also closes. But when i change the frm.close() to frm.windowstate = minimized, the mdichild minimizes, no problems whatsoever...

    how do i go about this?

    Basically I'm in an mdichild, and i need to kill the mdichild without killing the parent. (I sound like a murderer LOL)

  2. #2
    Frenzied Member Zakary's Avatar
    Join Date
    Mar 2005
    Location
    Canada, Quebec, Montreal
    Posts
    1,654

    Re: Not Familiar with MDI (need Help)

    Have you try this ?
    VB Code:
    1. For Each frm As Form In Me.MdiChildren
    2.     frm.Close()
    3. Next
    Using VS 2010 on Fw4.0

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