

Dim f As Form
For Each f In VB.Forms
If GetParent(f.hWnd) = frmParent.hWnd Then
Unload f
End If
Next f

Может, надо вызывать SetParent

Dim f as form
For each f in Forms
If f.hwnd <> frmParent.hwnd then Unload f
Next



Сейчас этот форум просматривают: Google-бот и гости: 10