Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>>
>>"How can I best trap the backspace key in a textbox so that after the text is fully deleted the textbox does not lose the focus? I only want the focus to move to the previous control by using the mouse or shift-tab."
>
>Right, and there's no problem from me on that. :-) I wasn't trying to solve the overall original problem as stated by Scott. I was only trying to show him (Scott) how to trap the keystroke so he could then develop his algorithm for solving his overall problem. But it seems a judicious test on the current SelStart/SelLength in the KeyStroke event could help to solve the overall problem. As usual, there's probably several ways of skinning this cat. :-)
>
>Bill
Very true. :)
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