Article ID: 153310
Article Last Modified on 6/24/2004
Option Explicit
Sub Form_Load()
Text1_lostfocus
Text2_lostfocus
Text3_lostfocus
End Sub
Sub SetSelected(ctl As Textbox)
ctl.SelStart = 0
ctl.SelLength = Len(ctl.Text)
End Sub
Private Sub text1_LostFocus()
Call SetSelected(text1)
End Sub
Private Sub text2_LostFocus()
Call SetSelected(text2)
End Sub
Private Sub text3_LostFocus()
Call SetSelected(text3)
End Sub
110394 How to Automatically Select or Highlight Text Box Upon Focus
Additional query words: 4.00 vb4win vb4all highlight
Keywords: kbcode KB153310