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