Occurs when the current selection of text in the RichTextBox control has changed or the insertion point has moved.
Syntax
Private Sub object_SelChange([index As Integer])
The SelChange event syntax has these parts:
Part | Description |
object | An object expression that evaluates to an object in the Applies To list. |
index | An integer that uniquely identifies a control if it's in a control array. |
Remarks
You can use the SelChange event to check the various properties that give information about the current selection (such as SelBold) so you can update buttons in a toolbar, for example.