Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textboxes...
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00527899
Message ID:
00527901
Views:
31
This message has been marked as the solution to the initial question of the thread.
>Hi folks - two things...
>
>1) When the user reaches the maximum number of characters in a textbox I would like the cursor to remain in the textbox rather than jumping to the next one allowing the user to carry on typing regardless. Is there any easy way to prevent this - I have experimented with the Interactive Change and Maxlength property but have not had any success.

Check out SET CONFIRM. You can add this to the GotFocus of the textbox in question and reset it in the LostFocus (if you don't want the same behavior for all textboxes).

>
>2) When I have an numeric type field, how do I place the cursor a few spaces to the left so that the user can easily enter more than single digit numbers?

You could use the SelectOnEntry property to handle this. If you need the same behavior when the user mouse clicks into the textbox, check out Message#332384.

http://www.levelextreme.com/wconnect/wc.dll?UniversalThread~?2,15,332384

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform