guys help me with the code for adding items in the combo box but without duplicates. i have an assignment which is a simple web browser. the combo box will be the address bar. and everytime i input an address, it will be added in combo box and should not repeat just like in the browsers. i hope you could help me. thanks
angel392004
0
Newbie Poster
Recommended Answers
Jump to PostComboBox.FindString will return the index of an item that matches.
See if this helps.
If combox1.FindString("The String To Search") < 0 Then combox1.Items.Add("The String To Search") End If
All 3 Replies

Unhnd_Exception
yansthais
0
Newbie Poster
Reverend Jim
4,612
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
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.