SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Deletes an item.
VB.NET | Remaining = object.Remove(ByVal ItemIndex As Integer) As Integer |
VB | Remaining = object.Remove(ByVal ItemIndex As Long) As Long |
C#.NET | int Remaining = object.Remove(int ItemIndex); |
VC++ | long Remaining = object->Remove(long ItemIndex); |
C | HRESULT object->raw_Remove(long ItemIndex, long* Remaining); |
object
ItemIndex
The zero-based index of the item to be removed.
Remaining
Returns the number of items remaining in the combo box.
The Remove method deletes an item.
Remove does not delete dependents of an item, use Item.DeleteDependents to delete dependent items first.
Items.Clear removes all items from a combo box.
If many items have to be deleted, the BulkUpdate property can be used to indicate a mass-update, which is significantly faster.
The drop down portion is automatically hidden when the combo box contents are changed using this method. The DropDown.SuppressOn method can be used to suppress hiding the drop down portion when adding/inserting items.
See Also SftBoxItems Object | Object Hierarchy