hello, am fairly new to VB. Net and am trying to develop an application. I want to implement auto complete function in one of my text boxes. I want my text box to show a list of items that are stored in my database when a user enters a particular letter.
thanks.
Emma Etigu
0
Light Poster
Recommended Answers
Jump to PostJust type autocomplete into the search box in the top right corner and you will find plenty of references.
Jump to PostHere is an example
Dim srce As New AutoCompleteStringCollection() srce.AddRange({"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"}) txtSample.AutoCompleteMode = AutoCompleteMode.Suggest txtSample.AutoCompleteSource = AutoCompleteSource.CustomSource txtSample.AutoCompleteCustomSource = srce
All 8 Replies
Minimalist
96
Posting Pro
Reverend Jim
4,544
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
Emma Etigu
0
Light Poster
Reverend Jim
4,544
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
Reverend Jim
4,544
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
Emma Etigu
0
Light Poster
Emma Etigu
0
Light Poster
Reverend Jim
4,544
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.