How can I access all application forms and dialogs?

D

dusiapapa

Hi everybody!

I've already posted this in the
"microsoft.public.dotnet.framework.windowsforms".

I have windows forms application containing a lot of MDI (shown with
..Show()) and modal (shown with .ShowDialog()) forms.
At some instant I need to kill all of them exept main application
window.
MDI forms can be accessed using MDIChildren property of the main form.
But how can I access modal dialogs?
May be there is better way to implement this task?

Thanks in advance!
 
D

dusiapapa

..NET 2.0 provides Application.OpenForms collection to access any form
of running application.
 

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