Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to drop down a combobox when user types '{Enter}'
Message
De
30/11/2004 00:02:37
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00965600
Message ID:
00965613
Vues:
7
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform