How to Use the Forms Collection to Unload All MDI Child Forms (97620)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 2.0
- Microsoft Visual Basic Standard Edition for Windows 3.0
- Microsoft Visual Basic Professional Edition for Windows 2.0
- Microsoft Visual Basic Professional Edition for Windows 3.0
This article was previously published under Q97620 SUMMARY
You can use Visual Basic code to close all MDI children by using the forms
collection. The forms collection contains references to all forms -- the
MDI parent form, MDI children forms, and non-MDI forms. To unload or close
all MDI forms, loop through the forms collection testing the value of the
MDIChild property on each form. If the MDIChild property is true, unload
the form.
| Modification Type: | Major | Last Reviewed: | 12/12/2003 |
|---|
| Keywords: | KB97620 |
|---|
|