Could someone help me hide the element of a ComboBox
once they select it and not lose the internal index for the other elements?
My ComboBox
I charge with the following method.
Private Sub ListarPeriodo()
Dim _lista As New List(Of Integer)
Dim producto As New Producto
producto.Id = cmbProducto.SelectedIndex + 1
Dim periodo As Integer = mgestorPeriodo.BuscarPeriodo(producto)
For i As Integer = 0 To periodo - 1
_lista.Add(i + 1)
Next
For Each i As Integer In _lista
cmbPeriodo.Items.Add(i)
Next
End Sub
I use the combo to load a certain number of numbers. When the user selects a certain number of this element, it must disappear and continue with the next number in the combo. But you should not lose the index, since when I record the object, it sends the index of each element.