How to force Dropdown on combobox??? VB6

December 14, 2011 at 08:15:09
Specs: Windows XP & Vista, 2Ghz/ 500Mb
VB6 how can you force Drop-down on combobox??? I do it in VBA but VB6 seem to provide no attribute/property that can control the Drop-down on a combobox.

Any ideas on a workaround? Or the answer even?


See More: How to force Dropdown on combobox??? VB6

Report •

December 14, 2011 at 08:51:27
There are three differnt type of Combo boxes in VB6. The simple combo will display already dropped down and you configure the size you want it.. The other two need to be clicked to drop dowm


Report •

December 14, 2011 at 08:56:39

Report •

December 14, 2011 at 10:23:49
Unfortuately this code as written wont work in anything later than Windows 98,

It is the Declare Function GetFocus Lib "User" () as Integer that throws it. You need to change all reference to "User" to "User32.dll". and change the send message function as below.

Declare Function SendMessage Lib "user32.dll" Alias "SendMessageA" (ByVal hWnd As Long, ByVal Msg As Long, wParam As Any, lParam As Any) As Long

It should work then.

it is the difference between 16 bit and 32 bit function calls.


Report •

Related Solutions

December 16, 2011 at 09:02:03
I did try a few SendKeys instructions and failed.

I do run Win98 but the target OS is XP SP3. I am developing on a Vista laptop.

I will investigate


Report •

Ask Question