Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to drop down a combobox when user types '{Enter}'
Message
From
30/11/2004 00:02:37
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00965600
Message ID:
00965613
Views:
8
Actually, the functionality of Enter depends on the design of the form. If you have a "Default" command button, Enter will trigger it's Click method.

>
>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	
>
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform