Share via


Visual Basic Reference

RemoveItem Method

See Also    Example    Applies To

Removes an item from a ListBox or ComboBox control or a row from an MS Flex Grid control. Doesn't support named arguments.

Syntax

object**.RemoveItem**index

The RemoveItem method syntax has these parts:

Part Description
object Required. An object expression that evaluates to an object in the Applies To list.
index Required. Integer representing the position within the object of the item or row to remove. For the first item in a ListBox or ComboBox or for the first row in an MS Flex Grid control, index = 0.

Remarks

A ListBox or ComboBox that is bound to a Data control doesn't support the RemoveItem method.