Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Format='K', SelStart = 0, SelLength = 7; Nothing works?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00213443
Message ID:
00213462
Vues:
32
>I have a disabled textbox on a form. When i click
>on a command button I enable the textbox and then do
>a setfocus() to that textbox. All that works but
>I also would like the textbox to have its contents
>already selected.
>
>I have tried the following measures but to no avail:
>
>textbox.Format = 'K'
>
>textbox.When
> This.sellength = 7
> this.selstart = 0
>
>How can I get the textbox to highlight its contents
>when it is enabled and the focus has changed to that
>object?

As a last resort, you can always do a Keyboard"{Ctrl+A}" in the gotfocus...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform