Skybound AutoComplete

DeleteEventArgs.DeleteItem Method 

Deletes the selected item from the Items collection. If the selected item is not in the collection, this method simply does nothing.

[Visual Basic]
Public Sub DeleteItem()
[C#]
public void DeleteItem();

Remarks

If you manually delete an item from the list, be sure to call the Refresh method afterwards to update the drop-down suggestion window.

Example

This example handles the Delete event to remove an item from the list when delete is pressed.

[C#]

private void autoCompleteManager1_Delete(
    object sender, Skybound.AutoComplete.DeleteEventArgs e)
{
    e.DeleteItem();
}

[Visual Basic]

Private Sub AutoCompleteManager1_Delete( _
  sender As Object, e As Skybound.AutoComplete.DeleteEventArgs) _
  Handles AutoCompleteManager1.Delete
    
    ' Delete the item from the Items collection
    e.DeleteItem
    
End Sub

See Also

DeleteEventArgs Class | Skybound.AutoComplete Namespace