Closeing all child forms in MDI app

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top