I found a work-around. I was hoping for a general setting, but could not
find one. I had to deal with each textbox individually:
Use LostFocus event handler, include all TextBoxes in question:
Sub txtTitle_LostFocus (ByVal sender As Object, _ ByVal e As
System.EventArgs) _
Handles txtTitle.LostFocus, _
txtFName.LostFocus, _ etc
DirectCast(sender,TextBox).SelectionStart = 0
DirectCast(sender,TextBox).SelectionLength = 0
End Sub
> In VS 2005, textboxes that are not long enough to display all of their text
> data will automatically scroll as you reach the right edge of the textbox,
[quoted text clipped - 10 lines]
> Thanks for any help.
> -Gary
Jeff Johnson - 07 Oct 2008 20:09 GMT
>I found a work-around. I was hoping for a general setting, but could not
> find one. I had to deal with each textbox individually:
You could have derived from TextBox and overridden OnLostFocus to get this
behavior and then used this new class for all your text boxes.