search this site the web

Tuesday, March 16, 2010

VB code to Set The Text Box Cursor Position

Add 1 Text Box to your form.

Form Code

Private Sub Form_Load()
' the following line will place the cursor after the
' 4th character
Text1.SelStart = 4
End Sub

No comments:

Post a Comment