I have a problem that I am really having a hard time with. I have a textbox in my form that I am trying to add into autocomplete so when I get back into that form I can just type the first letter and have it populate.
I have a textbox that I type a manufactures name into (ex. Konica Minolta) and at the button I have this code to save the textbox1.text into the autocomplete properties
Dim MySource As New AutoCompleteStringCollection() Dim add As String add = TextBox1.Text MySource.Add(add) TextBox1.AutoCompleteCustomSource = MySource TextBox1.AutoCompleteMode = AutoCompleteMode.SuggestAppend TextBox1.AutoCompleteSource = AutoCompleteSource.CustomSource
when i close the form and go back in, the textbox does not autocomplete. I am not sure that the coding is right and also I would like to add in if that name is already in the list to not add it over and over. I am trying to stay away from manualy adding in the names, I would really like to have it autopopulate.