This documentation is archived and is not being maintained.

ComboBox.ObjectCollection.Remove Method

Removes the specified item from the ComboBox.

[Visual Basic]
Public Overridable Sub Remove( _
   ByVal value As Object _
) Implements IList.Remove
[C#]
public virtual void Remove(
 object value
);
[C++]
public: virtual void Remove(
 Object* value
);
[JScript]
public function Remove(
   value : Object
);

Parameters

value
The Object to remove from the list.

Implements

IList.Remove

Exceptions

Exception Type Condition
ArgumentOutOfRangeException The value parameter was less than zero.

-or-

The value parameter was greater than or equal to the count of items in the collection.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

ComboBox.ObjectCollection Class | ComboBox.ObjectCollection Members | System.Windows.Forms Namespace

Show: