Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing the color of the selected textbox
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01018113
Message ID:
01018141
Views:
9
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
Previous
Reply
Map
View

Click here to load this message in the networking platform