Private Sub Text1_GotFocus()
Call SelectMe(Me.ActiveControl)
End Sub
Private Sub Text2_GotFocus()
Call SelectMe(Me.ActiveControl)
End Sub
Private Sub SelectMe(This As TextBox)
This.SelStart = 0
This.SelLength = Len(This.Text)
End Sub
Nenhum comentário :
Postar um comentário