Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to test if a textbox has the focus
Message
From
11/08/2006 20:43:14
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01145001
Message ID:
01145002
Views:
26
>How can you test if a textbox has the focus? I'm making changes in the textbox when the mouse enters and leaves the textbox, but I don't want the change to happen if the textbox has the focus, only when it doesn't.

You can check what is active control through Form.ActiveControl property and then use it to see if it's active then it has focus.
Previous
Reply
Map
View

Click here to load this message in the networking platform