Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing the color of the selected textbox
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01018113
Message ID:
01018141
Vues:
10
If you're going to create a subclass of the textbox (which you should), don't use the Tag property for something as useful as this. Just create a custom property for it. Something like BackColorWithFocus or FocusBackColor or anything else that makes it clear.

$0.02,
Chad

>Create a class based on TextBox. In GotFocus Event put:
>this.Tag = TRANSFORM(this.BackColor)
>this.BackColor = RGB(whatever)
>
>in LostFocus Event put:
>this.BackColor = VAL(this.Tag)
>
>and use this class in your forms
_________________________________
There are 2 types of people in the world:
    Those who need closure
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform