I have a text box.
I am trying to make it so, when some one types a SPACE in the textbox, the space doesn't show up.
:D thanks.
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
VulpesRank #55 · 29.2K reputationPosted Jul 25, 2013, 7:06 AM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 25, 2013, 7:47 AM EDT
You can do on KeyPress Event like this
this.textBox1.KeyPress += new KeyPressEventHandler(this.textBox1_TextChanged);
Regards,
Iftikar
thiago costaRank #6,113 · 276 reputationPosted Jul 25, 2013, 11:12 AM EDT
This one here I tried first
worked 100%, but I will keep the other code for future refence too.
Thanks so much guys
Mohammad Alam34 reputationPosted Aug 4, 2015, 10:33 AM EDT
Mohammad Alam34 reputationPosted Aug 4, 2015, 10:35 AM EDT