how to validate textbox that accepts only integers with backspace wants to work in c# windows application.
i wrote keypress event its working for integers but backspace is not working.
Know the answer? Post it. Somebody with the same question will find it here.



Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Oct 29, 2020, 7:18 PM EDT
Amit GuptaRank #190 · 12.8K reputationPosted Oct 30, 2020, 12:35 AM EDT
Harsh ShahRank #1,322 · 1.3K reputationPosted Nov 2, 2020, 5:10 PM EST