private void FormsCollection_Removed(int index, object value) { ODFForm f = value as ODFForm; f.Controls.Clear(); }