Skip to content

SelStart Property

Description

Gets or sets the starting point of text selected in the edit box.

Property Type

Read-write property

Syntax (Visual Basic)

Public Property SelStart() As Long

Remarks

If no text is selected in the control, this property indicates the insertion point for new text. If you set this property to a location beyond the length of the text in the control, the selection start position will be placed after the last character.

When text is selected in the text box control, changing this property might decrease the value of the SelLength property. If the remaining text in the control after the position indicated by the SelStart property is less than the value of the SelLength property, the value of the SelLength property is automatically decreased. The value of the SelStart property never causes an increase in the SelLength property.

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.