How to fix: after entering the value of the maximum length, the focus is immediately lost
How to fix: after entering the value of the maximum length, the focus is immediately lost
(OP)
When the full value is entered in the textbox, the focus moves to another
I understand that the maximum length has been exceeded, but I need the focus to remain on the textBox and I can only move the cursor with a click. Also, TABSTOP = .F. does not work for me. No more code in textbox
CODE -->
when the full value is entered in the Box, the focus moves to another
RE: How to fix: after entering the value of the maximum length, the focus is immediately lost
Chriss
RE: How to fix: after entering the value of the maximum length, the focus is immediately lost
RE: How to fix: after entering the value of the maximum length, the focus is immediately lost
TABSTOP = .F. prevents the user from moving to a control via the TAB key, but it doesn't prevent the control from receiving focus. The user will still be able to click on it, or use an access key; and you can still SetFocus programmatically. It has nothing to do with losing focus when the textbox is full.
Regarding SET CONFIRM, the default is OFF, but almost every application I've seen explicitly sets it to ON, which reflects the normal Windows behaviour. The default setting is for backward compatibility all the way back to dBASE.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Visual FoxPro articles, tips and downloads