Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I set cursor position
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00386440
Message ID:
00386478
Views:
17
>I have an empty textbox and based on the selection made on the combobox i will put a char. in the textbox(a prefix). the setfocus should be on the textbox and The cursor needs to be after the char. that was placed in the textbox so the user can finish the entry.

I don't know if their is a smarter way to do this but I'll share what I did.

At WHEN event of the TextBox, I have this code:
nStr = LEN(ALLT(This.Value))+1
For i = 1 To nStr
    Keyboard "{RIGHTARROW}"
Endfor
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform