
Originally Posted by
ebellounisoft
ComboBox1 shows USD, EUR, .... but also numbers 1,2,3....
I guess these numbers are come from my sample code, i think you need to add another button to remove any entry that may added by mistake or no needed anymore, try this
Code:
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
If My.Settings.ComboBox1Items.Contains(ComboBox1.Text) Then
My.Settings.ComboBox1Items.Remove(ComboBox1.Text)
ComboBox1.Items.Clear()
For Each s In My.Settings.ComboBox1Items
ComboBox1.Items.Add(s)
Next
If ComboBox1.Items.Count = 0 Then
ComboBox1.Text = String.Empty
Else
ComboBox1.SelectedIndex = 0
End If
End If
End Sub