Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ACTIVE textbox color
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00788927
Message ID:
00788931
Views:
15
>In 1 fell swoop statement Am I able to have each textbox's forcolor take on a color of my choice when it gets the focus, then revert back when focus lost?

In your textbox base class add two custom properties MyForeColor and SaveForeColor.
 * GotFocus event
THIS.SaveForeColor = THIS.ForeColor 
THIS.ForeColor = This.MyForeColor
* LostFocus - restore ForeColor
THIS.ForeColor = THIS.SaveForeColor
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform