General information
Category:
Forms & Form designer
>>
>>"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. :)
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only