Text Boxes (VB.NET)
txt1.Focus( ) ' Move the focus to the text box txt1.SelectionStart = 0 ' Set cursor to beginning of box txt1.SelectionLength = Len(txt1.Text) ' Set length of selection to contents length
TestBox Control Changes in Visual Basic .NET