Closing All MDI Child Windows At Once
-
Hello, I'm using VB.NET and i have created an MDI application using 2 forms, called masterform and childform. when i got to the point where i had many instances of childform i thought that it would be necessary to have an option of closing all MDI child windows at once, but i don't even know where to begin. any help would be greatly appreciated. :confused:
-
Hello, I'm using VB.NET and i have created an MDI application using 2 forms, called masterform and childform. when i got to the point where i had many instances of childform i thought that it would be necessary to have an option of closing all MDI child windows at once, but i don't even know where to begin. any help would be greatly appreciated. :confused:
Have you ever used the pure Windows API? There's a function called
EnumChildWindows()
that will help you out. I found a VB example online to help you get started... http://www.syix.com/wpsjr1/EnumChildWindows.zip[^] Jeremy Falcon Imputek Excrement escapes everyone - even elders.