Quantcast
Viewing all articles
Browse latest Browse all 18858

Bind to Property of Active Control

I have a form with several textboxes and a label control that I currently manually update with the number of characters entered and the total number of characters the user can enter for each textbox.

For example; in TextBox1 the user can enter 100 characters and in TextBox2 the user can enter 500 characters.  Currently I handle the GotFocus, LostFocus and TextChanged events to update the label control.

Is there any way I can bind the label to the active TextBox and display the current length of the text entered and the maximum length that can be entered?

Thanks in advance for any help...


For the benefit of others, please mark posts as answered or helpful when they answer or assist you in finding the answer. "Don't confuse fame with success. Paris Hilton is one; Helen Keller is the other." - with apologies to Erma Bombeck for paraphrasing her words.


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>