VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Automatically select all text in a text box when it recieved focus

by Anonymous (267 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 4.0 (32-bit)
Difficulty: Unknown Difficulty
Originally Published: Mon 18th January 1999
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Automatically select all text in a text box when it recieved focus

Rate Automatically select all text in a text box when it recieved focus



Private Sub Text1_GotFocus()

       SendKeys "{home}+{end}"

End Sub

Download this snippet    Add to My Saved Code

Automatically select all text in a text box when it recieved focus Comments

No comments have been posted about Automatically select all text in a text box when it recieved focus. Why not be the first to post a comment about Automatically select all text in a text box when it recieved focus.

Post your comment

Subject:
Message:
0/1000 characters