Javidan Guliyev
Javidan Guliyev

Reputation: 227

How to raise a textBox_InsertPlaceChanged event in TextBox at C#?

I couldnt make good question i know,but it is what i could.When user write something in textbox there appear symbol flashing which shows place which will be inserted character.It can be changed by left and right arrow buttons.I want to raise event when it is changed or something that i can get index of this "symbol".is there any property at textBox for it?

Upvotes: 1

Views: 814

Answers (1)

K Mehta
K Mehta

Reputation: 10543

The "symbol" is called a caret. When it's position changes, the SelectionChanged event is fired, and you can programmatically retrieve the position using the CaretIndex property on the TextBox.

You can find more information about this here.

Upvotes: 4

Related Questions