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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Jul 25, 2013, 11:06 AM
Mohammad AlamPosted Aug 4, 2015, 2:35 PM
Mohammad AlamPosted Aug 4, 2015, 2:33 PM
thiago costaPosted Jul 25, 2013, 3:12 PM
This one here I tried first
worked 100%, but I will keep the other code for future refence too.
Thanks so much guys
Iftikar HussainPosted Jul 25, 2013, 11:47 AM
You can do on KeyPress Event like this
this.textBox1.KeyPress += new KeyPressEventHandler(this.textBox1_TextChanged);
Regards,
Iftikar