General information
Category:
Coding, syntax & commands
Environment versions
Network:
Windows 2003 Server
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only