Как закрыть все открытые формы, созданные на лету?
Sub OpenForms
dim F as new frmForm1
F.show
dim F2 as new frmForm1
F2.show
End Sub
sub CloseForms
'doesn't work, (forms are created in a dll and ".openforms" method is not available):
'For each f as Form in My.Application.OpenForms
' f.Close()
'Next
end Sub
Хочу закрыть все открытые frmForm1 - есть идеи?