The IASForm::RemoveAtIndex method removes a control with a specified index from a form.
HRESULT RemoveAtIndex( long index );
NOERROR indicates success. If an error occurs, the appropriate HRESULT value is returned.
A control’s index may change as controls are added or removed. Identifiers, however, do not change. IASForm::RemoveAtIndex calls IASControl::Close for the control to be removed.