TextBox Selection : Display value in Label
Posted on 2004-09-14
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?