Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Count Available Textbox Characters

Status
Not open for further replies.

ormsk

Programmer
Sep 30, 2002
147
GB
I want to display in a label the number of available characters left available as a user enters data into a text box. I want this value to update as they enter each character.

I am sure I have seen this done in the past, but cannot find the thread.



**********************************
There is more than one way to skin a cat...but who wants a skinned cat?
 
I think it would involve usage of the controls on change event, and investigating the length of the controls .Text property - I think roughly

[tt]me!lblLabel.caption = 20 - len(me!txtBox.Text)[/tt]

should your limit be 20. Would surely need some tweaking/errorhandling ... and wouldn't this be more a forms question (forum702)?

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top