![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 | |
|
Newbie
Join Date: Jun 2005
Posts: 2
Rep Power: 0
![]() |
How to detect cursor location and insert text???
If I have a rich text box on a form, that is filled with say 30 lines of text the user has inserted. Is there a way I can detect where the cursor is in that text and insert some pre-defined text at its location on a button click? For example:
"This is some text in a rich text box. This is some text in a rich text box. This is some text in a rich text box. This is some text in a rich text box. This is some text in a rich text box. This is some text in a rich text box.<!!!!the cursor is here!!!> This is some text in a rich text box. This is some text in a rich text box. This is some text in a rich text box. This is some text in a rich text box." How can I detect where the cursor is and insert some text at its location? Thanks.
__________________
Someone dropped ignorance in the gene pool. Quote:
|
|
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|