Jul 26, 2002 #1 netcashin Programmer Joined Nov 13, 2000 Messages 159 Location US Ok this is probably a simple answer. First time working with MDI forms. How can I close all child forms within a MDI form? Thanks in advance
Ok this is probably a simple answer. First time working with MDI forms. How can I close all child forms within a MDI form? Thanks in advance
Jul 26, 2002 #2 erre1p Programmer Joined Jun 16, 2002 Messages 12 Location CA Hi, Close the MDI form and all the child forms will be automatically closed. Regards. Pierre Montreal,Quebec,Canada Upvote 0 Downvote
Hi, Close the MDI form and all the child forms will be automatically closed. Regards. Pierre Montreal,Quebec,Canada
Jul 26, 2002 Thread starter #3 netcashin Programmer Joined Nov 13, 2000 Messages 159 Location US I should of put more information. I wish to close the child froms without closing the parent form. Upvote 0 Downvote
Jul 26, 2002 #4 MarkSweetland MIS Joined Aug 30, 2000 Messages 1,177 Location US Try this: Dim frm As Form For Each frm In Forms If Not TypeOf frm Is MDIForm Then If frm.MDIChild Then Unload frm End If End If Next Mark Upvote 0 Downvote
Try this: Dim frm As Form For Each frm In Forms If Not TypeOf frm Is MDIForm Then If frm.MDIChild Then Unload frm End If End If Next Mark