Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I determine cursor position in a text box
Message
 
To
18/05/2004 23:30:46
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00905157
Message ID:
00905161
Views:
13
This message has been marked as the solution to the initial question of the thread.
Put this in the keypress event of the textbox :

IF this.SelStart = 0 AND nKeyCode = 19
NODEFAULT
ENDIF


>1. Is there a property or a way to determine in what position a cursor is in a text box?
>
>2. We are trying to disable the LEFT ARROW key from moving the user out of the TEXTBOX if the cursor is in the first position.
Cheers,
Jamie
Previous
Reply
Map
View

Click here to load this message in the networking platform