Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox problem
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00156692
Message ID:
00157065
Views:
47
Colin,

Clever solution.

>I finally came up with a solution that is actually pretty simple and thought I'd pass it along.
>
>In the Combobox.KeyPress I put the following
>IF nKeyCode=5 OR nKeyCode=24     &&UPARROW or DNARROW
>	This.Style=0                                 &&Set Style to Dropdown Combo
>	DODEFAULT()
>ENDIF
>
>In the Combobox.Valid I put
>This.Style=2           &&Set Style to Dropdown List
>
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform