VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Selects all text in a singleline OR multiline textbox when the textbox recieves focus

by 5thShadow (1 Submission)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 4.0 (32-bit)
Difficulty: Unknown Difficulty
Originally Published: Fri 12th March 1999
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Selects all text in a singleline OR multiline textbox when the textbox recieves focus

Rate Selects all text in a singleline OR multiline textbox when the textbox recieves focus



'event:

SendKeys "^{home}+^{end}"

'this code works on both singleline AND multiline textboxes, unlike the
'code submitted by a number of other people:  SendKeys "{home}+{end}"
'      ---5thShadow

Download this snippet    Add to My Saved Code

Selects all text in a singleline OR multiline textbox when the textbox recieves focus Comments

No comments have been posted about Selects all text in a singleline OR multiline textbox when the textbox recieves focus. Why not be the first to post a comment about Selects all text in a singleline OR multiline textbox when the textbox recieves focus.

Post your comment

Subject:
Message:
0/1000 characters