By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,067 Members | 1,818 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,067 IT Pros & Developers. It's quick & easy.

Auto Search in Combo

P: 64
Hi Folks,

I want Help regarding the Auto search in the Combo Box. When I am pressing the characters it will move to the appropraite words in the Combo Box.

For Example if the Combo Box filled with the Apple, Ant, Boy,Buy

If press the A then it should go the Apple,Ant,
If press the An then it should go the Ant.

Like this to be activate the Auto Search in the Combo.

Thanks & Regards
May 30 '08 #1
Share this Question
Share on Google+
3 Replies

Expert 100+
P: 487
there is no such control like that in VB 6.0. (In combobox you can go to the first line of the character and go further as much fast you type). In other hand you can use a textbox and list view.
May 30 '08 #2

P: 66
May be u can try this.
DOesn work fully

Private Declare Function SendMessage Lib "User32" _
Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, _
ByVal wParam As Long, lParam As Long) As Long

Private Sub cmbType_GotFocus()
Dim lRet As Long
lRet = SendMessage(cmbType.hWnd, &H14F, 1, ByVal 0&)
End Sub
May 30 '08 #3

daniel aristidou
P: 491
The combo boxes in vb 2008 (and i think vb 2005) enable you to do this
Under the properties. there is an autocomplete, function.
add the items you want to be autocompleted either by code or by editing it in the properties window.
May 31 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.