Collection was modified; enumeration operation may not execute.

Mar 26 2011 6:53 AM

foreach (Form frm in Application.OpenForms)

{

        frm.Close();

}

the error occur above code

Collection was modified; enumeration operation may not execute.


Answers (1)