Click to See Complete Forum and Search --> : Combo / List Box


santulan
September 12th, 1999, 04:49 AM
Dear All,
I stored some data in Combo / List box. I wish to filter the item as user type something in a combo. The problem is combo does not automatically all available items in the combo window. I have to press Alt+ down Arrow Key to show. In case of Combo please tell me how to automatically show items in combo window.
In case of list box, How do I connect a text box to list box to filter the contents fo list box.

Santulan

Lothar Haensler
September 13th, 1999, 02:09 AM
to show the dropdown list of a combobox you case use the following code:
Call SendMessage(Combo1.hwnd, CB_SHOWDROPDOWN, True, 0)

...and declarations

Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Public Const CB_SHOWDROPDOWN = &H14F

Lior
September 13th, 1999, 03:04 AM
Hello ,
How can I use the "SendKeys" function for example in order to activate certain controls on my form, during run-time.Is it even possible to do with "SendKeys" or do I have to bring in API funcs'..?
Thank-you!!


LED