开发者

is there any way to know the position of my cursor - in TextBox control?

开发者 https://www.devze.com 2023-01-20 13:00 出处:网络
i have in my C# (WinForms) program TextBox control if i have this text in: abcd efg hijklmnop and i stand with my cursor between c and d= position 3

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

if i have this text in: abcd efg hijklmnop

and i stand with my cursor between c and d = position 3

or i stand wi开发者_如何学Cth my cursor between h and i = position 10

how to get this position ?

thank's in advance


Have you tried using TextBox.SelectionStart that should have the current cursor position.

0

精彩评论

暂无评论...
验证码 换一张
取 消