System.Windows.Forms.UpDownBase.Select Method

Selects a range of text in the spin box (also known as an up-down control) specifying the starting position and number of characters to select.

Syntax

public void Select (int start, int length)

Parameters

start
The position of the first character to be selected.
length
The total number of characters to be selected.

Remarks

The UpDownBase.Select(int, int) method can be used when the spin box gets focus, or when the UpDownBase.Text property fails data validation. When adding the validation code for the UpDownBase.ValidateEditText method in a derived class, call the UpDownBase.Select(int, int) method when validation fails.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0