How can I Add an item to a combobox items collection at run time, permanently not temporarily, so next time I open my interface it will be there ?. Thank you.
To add it at run time I am using this code. It adds every item I put in, but when I close and open again my app again these items are not in the combobox items collection. So Is not working.
Code:Private Sub ComboBox1_LostFocus(sender As Object, e As EventArgs) Handles ComboBox1.LostFocus Dim newItem As String = ComboBox1.Text AddElement(ComboBox1, newItem) End SubCode:Sub AddElement(ByRef control As ComboBox, ByVal newItem As String) Dim idx As Integer If control.FindString(newItem) >= 0 Then idx = control.FindString(newItem) Else idx = control.Items.Add(newItem) End If control.SelectedIndex = idx End Sub




