Selecting All Text

  • Thread starter Thread starter JamesJ
  • Start date Start date
J

JamesJ

When a text box has the focus how do I programmatically select
all the text in the field. I want to keep the Entering Field Behavior
in Options set at Go to start of field.

Thanks,
James
 
In the On Enter event of the text box put this code

TextBox.SelLength = Len(TextBox)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top