|
-
Oct 21st, 2005, 05:15 AM
#1
Thread Starter
Member
Not Familiar with MDI (need Help)
VB Code:
Dim frm As Form
For Each frm In Me.Parent.FindForm.MdiChildren
frm.Close()
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)
-
Oct 21st, 2005, 07:34 AM
#2
Re: Not Familiar with MDI (need Help)
Have you try this ?
VB Code:
For Each frm As Form In Me.MdiChildren
frm.Close()
Next
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|