Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
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.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement