×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

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

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

CODE -->

when the full value is entered in the Box, 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

RE: How to fix: after entering the value of the maximum length, the focus is immediately lost

You can SET CONFIRM ON, then arriving at max length the focus does not automatically change.

Chriss

RE: How to fix: after entering the value of the maximum length, the focus is immediately lost

(OP)
Great, just what you need! Thx Chris

RE: How to fix: after entering the value of the maximum length, the focus is immediately lost

Quote:

TABSTOP = .F. does not work for me

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close