How to Select All Text in a Field When It Gets the FocusLast reviewed: July 11, 1996Article ID: Q153310 |
The information in this article applies to:
SUMMARYIn many cases, it is best to select or highlight the full text of a field when that field gains the focus. This allows the user to simply begin typing to replace the original text with new text or to press TAB to leave text as it is, and move to the next field. This is particularly useful in screens where there are multiple text boxes bound to a Data control for example.
MORE INFORMATION
Step by Step Example
REFERENCESVisual Basic Language Reference, SelLength, SelStart Properties, Pages 842-844 Q110394 - How to Automatically Select or Highlight Text Box Upon Focus
|
Additional reference words: 4.00 vb4win vb4all highlight
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |