Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to drop down a combobox when user types '{Enter}'
Message
From
29/11/2004 23:24:45
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00965600
Message ID:
00965606
Views:
9
>>How do you open a combobox programmatically when user types {Enter} while in it?
>
>By default, Enter moves focus to the next control in the tab order. I'm not sure it's a good idea to change that. Anyway, you can get desired result with following code.
* Combobox Keypress
>LPARAMETERS nKeyCode, nShiftAltCtrl
>IF nKeyCode = 13
>	KEYBOARD "{ALT+DNARROW}" CLEAR PLAIN
>	NODEFAULT
>ENDIF	
>
Sergey,

Your suggestion, as well as John Jones and James Blackburn's, did the job.

Thank you very much for the kind help you always give. I am sure all UT participants appreciate it as much as I do.

Thank you John and James, too.

Alex
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform