Is there a way to find out the position of my cursor - in a TextBox control?

I have in my program C # (WinForms) TextBox control

if I have this text: abcd efg hijklmnop

and I stood with my cursor between cand d= position 3

or I am standing with my cursor between hand i= position 10

How to get this position?

Thanks in advance

+3
source share
1 answer

You tried to use TextBox.SelectionStartwhich should have the current cursor position.

+5
source

Source: https://habr.com/ru/post/1770667/


All Articles