Hi everyone,
I'm trying to make the autocomplete work on a list of items entered into a textbox separated by semicolons. I have a list of authors the user can choose from and it autocompletes as they type the name no problem, but what I'd like to do is after the user types a name followed by a semicolon, the autocomplete works on the next name and so on.

e.g., Smith, John; Eastwood, Clint

Any suggestions?
cheers
Harry

Every time the user hits ; you could add the specified name of the author to a list and clear the textBox.

i.e.
If keyPressed = ";" then
AuthorList.Add(txtBox.Text)
txtBox.Text = ""
End If

You could also tell autocomplete to start over at specified substring where the starting index of the substring is the index of ";" + 1 in the textbox...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.