Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>>I'm trying to SetFocus to a textbox in a container, inside another container, on a form, from within it's own KeyPress event. They want me to use to add items to a list indefinitely, or when they click OK. I'm forgetting how to not proceed in the tab order of the form(or container) when enter key is pressed.
>>
>>Eric K.
>
>What about setting this code in the keypress event of the textbox?
>
>if nkeycode = 13
> nodefault
> && your code
>endif
>
>Another solution is setting tabstop property to .f. to all the other controls too.
>Hope this helps
>Carlos
nodefault works great thanks...
Eric K.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement