How can I access all application forms and dialogs?

  • Thread starter Thread starter dusiapapa
  • Start date Start date
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!
 
..NET 2.0 provides Application.OpenForms collection to access any form
of running application.
 
Back
Top