Link to home
Start Free TrialLog in
Avatar of schworak
schworak

asked on

Making a combo box drop down via code.

Is there an API or other code that will cause the STANDARD VB6 combo box drop down?

I have a control that is to be linked to a combo box (drop down). When the control gets focus, I want the combo box it is to be software linked to to drop down so the user can see the list of options and click on if he/she wishes.

Know of code to cause the drop down to happen on command?
Avatar of vettranger
vettranger

Without researching how to make a combobox act like this ...

Is there any reason not to use a listbox instead.

You can change the listbox visible property to true and false to hide and show the list at appropriate times, or alternatively you could change the height property to make the listbox "drop down".

Or do you expressly need the selection to appear as a combo box?
ASKER CERTIFIED SOLUTION
Avatar of Erick37
Erick37
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial