TextBox tab - select all

This forum can be browsed by the general public. Posting is no longer allowed as the product has been discontinued.
User avatar
jahaima
Posts: 1
Joined: Tue Jan 15, 2013 3:21 am

TextBox tab - select all

Post by jahaima »

I don't know what this is called or where the option is, but it seems to be a fairly standard thing and I can't figure out how to do it.

I have a number of TextBoxes and I've set the TabIndex on them so the user can just tab between fields. How do I set it so that when the user presses tab to change to the next one that it automatically selects all the current text in that box? Then the user can just type over the current text without having to backspace.

User avatar
davidc
Posts: 5913
Joined: Thu Aug 18, 2011 4:56 am

TextBox tab - select all

Post by davidc »

You could use the control's Enter event to trigger the selection, but it would also trigger when you click on the textbox.


David
David
SAPIEN Technologies, Inc.