on the GotFocus-event, call this procedure, like this:;Code:Public Sub gSelectText(txtText As TextBox) On Error Resume Next txtText.SelStart = 0 txtText.SelLength = Len(txtText) End Sub
Code:Private Sub Text1_GotFocus() Call gSelectText(Text1) End Sub




Reply With Quote