'Declaration Protected Overridable Sub OnRemove( _ ByVal index As Integer, _ ByVal value As Object, _ ByRef cancel As Boolean _ )
'Declaration Protected Overridable Sub OnRemove( _ ByVal index As Integer, _ ByVal value As Object, _ ByRef cancel As Boolean _ )
If the index of the item is unknown, index is -1. In that case, the System.Collections.IList.IndexOf(System.Object) method needs to be called with the value to retrieve the index.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2