Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opposite of DropDown for a ComboBox
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00793015
Message ID:
00793048
Views:
52
Thanks - that's got it.
>Hi - I am trying to get some behaviour from a combo box and I need to test in the keypress event whether the drop down is down or up. I can set a variable on my form with the dropdown method but is there a way of catching the close up?
>
>This code in the combo's KeyPress before checking to see whether it is dropped down:
>
>
>*** If escape or enter pressed, the list is not dropped down anymore
>IF nKeyCode = 27 OR nKeyCode = 13		
>  This.lDroppedDown = .F.
>ENDIF
>
>
>And This code in the combo's Click():
>
>
>This.lDroppedDown = .F.
>
Chris Maiden
Email
Web
Previous
Reply
Map
View

Click here to load this message in the networking platform