views:

5

answers:

0

Hi,

I am trying to detect and deal with edits in my RichTextBox.

Some edits end up with two lines being merged into one. For example if the rich text box contained:

line 1
line 2

Selecting from the beginning of "line 2" to the end of "line 1" and then pressing delete will result in:

line 1line 2

I can detect the fact that the first line has changed its content but how can I know that the second line has also been modified / deleted and merged into the first one?

Thanks, Alan