I need to be able to click or doubleclick anywhere in the body of a richtext box and have the value of a string I be inserted into that part of the text file in the richtextbox overwriting what was already there.

For example the first line of the RTFBox is

The cat sat on the mat

I have "dog" in memory as a string variable somewhere when I click just before the c of cat the sentance comes out like this

The dog sat on the mat

and not....

The dogcat sat on the mat.

If you know what I mean.

Anyone any ideas ? Cheers.

DQ