Jul 26, 2002 #1 netcashin Programmer Nov 13, 2000 159 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 Jun 16, 2002 12 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 Nov 13, 2000 159 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 Aug 30, 2000 1,177 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