"Newbie" <Ne****@discussions.microsoft.com> wrote in message
news:15**********************************@microsof t.com...
I HAVE A MULTILINE TEXTBOX THAT HAS A CONTROL BESIDE IT. THE CONTROL BESIDE
IT SHOULD SAY SOMETHING LIKE "145 CHARACTERS LEFT". THIS TELLS THE USER
WHEN
HE'LL REACH THE MAX CHAR. ALLOWED. AS THE USER TYPES INSIDE THE TEXTBOX,
THE
CONTROL BESIDE IT WILL CONTINUE COUNTING DOWN.
Hi. Set the MaxLength property of the textbox to have the maximum number of
chars that you will allow. Then add the TextChanged event to the textbox
and in the handler for it show the remaining left. For example,
lblRemaining.Text = (txtBox.MaxChars - txtBox.Text.Length).ToString();
PS Please don't type in caps, it is used to signify shouting. Thx.
-- Alan