Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I set cursor position
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00386440
Message ID:
00386478
Vues:
16
>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."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform