Arhh,
I was wondering when you were going to ask that!
If you get the latest LitDev Beta (not sVB) then there is a new method LDControls.RichTextBoxMousePosition which returns the line text the cursor is at and the character number from the left. The reason for this way of doing it is handling scrollbar scrolling and line wrapping of longer lines.
This is my test example - it is getting a bit complex, so ignore it if you want. It also has image button - put your own image in, TWLL943.000.
I was wondering when you were going to ask that!

If you get the latest LitDev Beta (not sVB) then there is a new method LDControls.RichTextBoxMousePosition which returns the line text the cursor is at and the character number from the left. The reason for this way of doing it is handling scrollbar scrolling and line wrapping of longer lines.
This is my test example - it is getting a bit complex, so ignore it if you want. It also has image button - put your own image in, TWLL943.000.