private void FormCollection_Removed(int index, object value) { ODFForm child = (value as ODFForm); if (child !=null) { child.Controls.Clear(); } }