Jzzzz
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.lengt h.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?
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.lengt
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
you're welcome
ASKER
exactly!!
I wouldn't have figured that in a hundred years..:)
thanks man.