469,072 Members | 1,827 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,072 developers. It's quick & easy.

Problem in listing out the items in Combo box

Hi am doing my project using Vb 6.0 with ms-access..
am using combo box to select the item by the user..

if the user selecting the item in the combo box without using mouse.
My problem is,
While they are typing the first letter of the item,automatically the corresponding items which starts by that letter should be displayed under the combo box.similarly for the second ,third letters n so on....so that the user can select the items easily...
Plz let me know the solution soon....
Jul 24 '06 #1
3 2493
Hemant Pathak
92 Expert
Hi
u can API SendMessageString

Private Decleare Function SendMessageString Lib "User32" Alias "SendMessageA" (Byval hwnd as Long,Byval wmsg as Long,ByVal wParam as long,ByVal lParam as String)

const CB_SHOWDROPDOWN=&H14F

'Declear these function above in the form
'Suppouse ur Combo Box Name is Combo1
'Write this Code in Combo Keydown Event

SendMessageString Combo1,CB_SHOWDROPDOWN,-1,Combo1.text




Enjoy............................................. ...........
Jul 24 '06 #2
Hi
u can API SendMessageString

Private Decleare Function SendMessageString Lib "User32" Alias "SendMessageA" (Byval hwnd as Long,Byval wmsg as Long,ByVal wParam as long,ByVal lParam as String)

const CB_SHOWDROPDOWN=&H14F

'Declear these function above in the form
'Suppouse ur Combo Box Name is Combo1
'Write this Code in Combo Keydown Event

SendMessageString Combo1,CB_SHOWDROPDOWN,-1,Combo1.text




Enjoy............................................. ...........


hi
while i am compile, type mismatch error is occuring in the following line.
SendMessageString Combo1,CB_SHOWDROPDOWN,-1,Combo1.text

Get me the solution soon..
Regards
Bremanand.S
Jul 24 '06 #3
Please help me............
Jul 25 '06 #4

Post your reply

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

Similar topics

4 posts views Thread by John Tyce | last post: by
2 posts views Thread by Fred Flintstone | last post: by
1 post views Thread by Gian Paolo | last post: by
6 posts views Thread by =?Utf-8?B?amVmZmVyeQ==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.