Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Suppressing certain keys on OnKeyDown
Message
De
06/04/2005 07:36:00
Filip Bruman
Kirschberg Holding
Copenhagen, Denmark
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Titre:
Suppressing certain keys on OnKeyDown
Versions des environnements
Environment:
C# 1.1
OS:
Windows XP SP2
Divers
Thread ID:
01001820
Message ID:
01001820
Vues:
70
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
Fil
Voir

Click here to load this message in the networking platform