Link to home
Start Free TrialLog in
Avatar of ssdjgru1
ssdjgru1

asked on

All opened forms

Does anybody know how to get all opened forms that exist in program? (Background: I would like to close all forms (all but main) that are opened after the timer on main form runs out.)
If you have MDIContainter it is simple:  foreach (Form frm in this.MdiChildren) and you get them. I would like to do something similar with non MDI form if it's possible.

Thank you!
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

What version of .NET do you have?

Bob
ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi, Mikey :)

Bob
G'Morning Bob!