Description
DeleteItem function is unsupported in a user defined
object.
Workaround
Call the DeleteItem function of controls such as ListBox,
DropDownListBox, PictureListBox, DropDownPictureListBox, or ListView
instead of calling the DeleteItem function of a user-defined
object.