Link to home
Start Free TrialLog in
Avatar of Jzzzz
JzzzzFlag for United States of America

asked on

TextBox Selection : Display value in Label

I want to dispaly the selected text in a "textbox" in a label
when my app is running.
I have other control also on my form. datagrids  for updating information and other button controls.

So, when the user selects text in the textbox which is bound to a datasource , i need to display the  number of characters in the selected text like this
       
         label.text = textbox.selectedtext.length.tostring();

My question is which event of the textbox do i use.

Enter / Focus/ Leave/ LostFocus etc.

In VS.net in the events list only  "Enter"  is there why?





 
ASKER CERTIFIED SOLUTION
Avatar of tzxie2000
tzxie2000
Flag of China image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jzzzz

ASKER

wow.....

exactly!!

I wouldn't have figured that in a hundred years..:)

thanks man.
you're welcome