how to display dropdown list of datacombo control when it get focused without mouse click on it
Posted on 2003-02-20
I am making an application in which I am using DataCombo box control to display the lsit of EmployeeName.
What i want is when the focus comes on this DataCombo Control from another control , this DataCombo box should be displayed with dropdown list.
This is possible with simple Combobox control with the use of Sendmessage function of user32.dll ,in this I am passing values like this
SendMessage Combo1.hwnd, CB_SHOWDROPDOWN, True, 0
so whenever I call this code it displays the dropdown list of simplecombo.
but when i do same thing using DataCombo its not working .
SendMessage DataCombo1.hwnd, CB_SHOWDROPDOWN, True, 0
how can I solve this problem ?