Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Suppressing certain keys on OnKeyDown
Message
From
06/04/2005 07:36:00
Filip Bruman
Kirschberg Holding
Copenhagen, Denmark
 
 
To
All
General information
Forum:
ASP.NET
Category:
Forms
Title:
Suppressing certain keys on OnKeyDown
Environment versions
Environment:
C# 1.1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01001820
Message ID:
01001820
Views:
64
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
Map
View

Click here to load this message in the networking platform