General information
Title:
Suppressing certain keys on OnKeyDown
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
Next
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