just a tip: this is the way i use it...

VB Code:
  1. 'in a module...
  2. Sub HiLite(myText as TextBox)
  3.      myText.SelStart = 0
  4.      myText.SelLength = Len(myText.Text)
  5. End Sub
  6.  
  7. 'then call it in a TextBox's GotFocus event:
  8. Private Sub Text1_GotFocus()
  9.      HiLite Text1
  10. End Sub

this is helpful when you're dealing with multiple textboxes...
or better use control array so you are going to call the gotfocus event only once for al the textboxes.