Visual Basic / Text / Automatic selection
Snippet details
ID: 461
Viewed: 1326
Added: 2002-08-19
Version:
When using edit boxes, it is often useful to generate automatic selection of
text for your users when the control gets focus. This makes it easy to
overwrite the text. You can do this easily by adding a couple of lines to the
GotFocus event procedure:
Notice that the length value for SelLength is 65535, the maximum length allowed in a Text Box. This forces Visual
Basic to use the actual length of the text as the SelLength.
text for your users when the control gets focus. This makes it easy to
overwrite the text. You can do this easily by adding a couple of lines to the
GotFocus event procedure:
Notice that the length value for SelLength is 65535, the maximum length allowed in a Text Box. This forces Visual
Basic to use the actual length of the text as the SelLength.
General Details
Snippet uploaded by: snippet
Email : webmaster@snippetlibrary.com
Snippet By: Unknown
| Snippet By: | Unknown |
| Declarations | |
| Code | |
| Highlight All | |
No Reviews to show
