Click here to Skip to main content
15,886,567 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
How can i find the caret position in a multiline edit box. suppose i have a multiline text box, which contains some text. i want to insert some input some text at the caret position.

I am able to append the text at the end, but not middle of the text,

how can i achieve this.
Posted

1 solution

SelectionStart[^] property of the textbox should help.
 
Share this answer
 
Comments
Manfred Rudolf Bihy 3-Apr-11 10:40am    
Good answer! 5+
Proposed as solution.
Wendelius 3-Apr-11 10:42am    
Thank you :)
Sergey Alexandrovich Kryukov 5-Apr-11 0:47am    
As simple as that, a 5.
--SA
Wendelius 5-Apr-11 13:35pm    
Thanks :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900