Closeing all child forms in MDI app

  • Thread starter Thread starter Brian Henry
  • Start date Start date
B

Brian Henry

Hi,
this task sounds like it should be easy but what I tried didn't work. My app
has a logoff button, and when a user clicks it i need to close all the child
mdi windows in a mdi container... i thought this would work

' close any forms open

Dim f As Form

For Each f In Me.OwnedForms

f.Close()

Next



i also tried using that with me.controls, neither closed the forms. How
would you go about doing this? thanks
 
Back
Top