Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set all Gotfocus and LostFocus to
Message
From
30/03/2005 10:42:50
 
 
To
30/03/2005 09:48:36
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Novell 5.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00999921
Message ID:
00999939
Views:
19
>Is there a way to change the code in all textbox gotfocus & lostfocus to this.backcolor= etc without going into each one and adding the code?

Doug,

If you're running VFP 8 or above, you could also use BindEvents() in your Form.Init() to redirect these events to a form method that would handle these activities. This way you don't need another subclassed control and you don't need to spread logic amongst multiple controls.

Malcolm
Malcolm Greene
Brooks-Durham
mgreene@bdurham.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform