Trapping backspace character key presses?
This topic probably belong here, rather than the c# forum...
When tying to allow only number into a text box, I added code which works BUT as a side effect, I cant actually use backspace anymore to delete typing errors :-(
Any ideas on how to fix this? I want to trap the backspace to allow it. I tried stuff like:
if(e.KeyChar.Equals(Keys.Back))
{ ... }
But this doesnt seem to work :-( Any ideas?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

MykonineRank #2,671 · 521 reputationPosted Sep 21, 2004, 10:27 AM EDT
joy.simpsonRank #4,292 · 353 reputationPosted Sep 24, 2004, 10:14 AM EDT
joy.simpsonRank #4,292 · 353 reputationPosted Sep 24, 2004, 10:17 AM EDT