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 :bigyello: LOL)
Re: Not Familiar with MDI (need Help)
Have you try this ?
VB Code:
For Each frm As Form In Me.MdiChildren
frm.Close()
Next