public void Select(
int aStart,
int aLength
)Public Sub Select (
aStart As Integer,
aLength As Integer
)If you want to set the start position to the first character in the control's text, set the start parameter to 0. You can use this method to select a substring of text, such as when searching through the text of the control and replacing information.
You can programmatically move the cursor within the text box by setting the start parameter to the position within the text box where you want the cursor to move to.
| ArgumentOutOfRangeException | Thrown when given parameters are out of range of valid values. |