VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Select the starting point for the TEXT BOX on the GOT FOCUS event. That way all Quick Text Select O

by EM Dixson (6 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 4.0 (32-bit)
Difficulty: Unknown Difficulty
Originally Published: Thu 28th October 1999
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Select the starting point for the TEXT BOX on the GOT FOCUS event. That way all Quick Text Select On GotFocus When working with data entry

API Declarations





Rate Select the starting point for the TEXT BOX on the GOT FOCUS event. That way all Quick Text Select O




    '

    With ctlName

        .SelStart = 0

        .SelLength = Len(ctlName)

    End With

    '

End Sub
Now add a call to this subroutine in the GotFocus event of the input controls:

Private Sub txtFocusMe_GotFocus()

    Call FocusMe(txtFocusMe)

End Sub


Download this snippet    Add to My Saved Code

Select the starting point for the TEXT BOX on the GOT FOCUS event. That way all Quick Text Select O Comments

No comments have been posted about Select the starting point for the TEXT BOX on the GOT FOCUS event. That way all Quick Text Select O. Why not be the first to post a comment about Select the starting point for the TEXT BOX on the GOT FOCUS event. That way all Quick Text Select O.

Post your comment

Subject:
Message:
0/1000 characters