Information générale
Titre:
Suppressing certain keys on OnKeyDown
Versions des environnements
Hi!
Can anyone tell me how to suppress a certain key in the OnKeyDown event within a TextBox?
What I am trying to do is to suppress the Tab key. I've tried this by :
Passing a different KeyEventArgs to the base.OnKeyDown, like 'Delete' or 'Backspace'
and
If there is an ErrorProvider error just give the focus back to the TextBox with the contents of the TextBox before the OnKeyDown event was raised.
Both with no luck though!
Regards
Filip
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