Hi!
I am taking one TextBox and Lable. label Text is 150. and i set TextMode is Multiline and MaxLength is 150. My aim is when i write text in textbox. that text count is displayed in label. when user erase the text that time also count decrease. how to write code to do this.
and one more thing. i set Multiline to textbox and max length is 150. if i enter more than 150 characters it allows. but my aim is it not allow, enter 150 characters then we enter words it not print. how to write program to do this?
Thanks.
Count the textbox characters?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

VasanthRank #1,486 · 1.1K reputationPosted Apr 11, 2010, 10:24 PM EDT
http://www.c-sharpcorner.com/UploadFile/vasanthks/788/?ArticleID=3916cca7-a840-4cbf-9706-b3c5da1f8a1f
Chellappan Pandiarajan6 reputationPosted Apr 12, 2010, 12:51 AM EDT
Hi,
Its very Simple
Here i Attach the Example U need...
Check and Use it......
ajay rajuRank #4,639 · 333 reputationPosted Apr 12, 2010, 2:52 AM EDT
Thank u for Giving a code. it is working in Windows Application, and how to write code in web Application. and how to write code for decrement the count. means in ur program count start from 1 to 150. and my aim is i write Characters Left : 150. when user write the text decrease the value of 150 to 0. please also provide code for to do this.
Thanks.