Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Is there an event that traps focus changing on a form?
Versions des environnements
Say that I have a method on my form that I want to fire every time the user tabs out of one textbox and into the next. Or when they click on some other control on the form to change focus of that control....
So I'm looking for a way to fire this method as bascially any time focus changes on the form, but I do not want to add code to EVERY control's LostFocus() event.
Any ideas?
The reason for this is I need to run some calculations based on the inputs values of several textboxes, and I want it to fire every time they tab out of a textbox so I can update the data that I display on the form in other textboxes.
Suivant
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