Get differences between two RichTextBox [VB.NET]

  • Thread starter Thread starter Mattia Fanti
  • Start date Start date
M

Mattia Fanti

Guest
Hi guys, I'm wondering how it comes to be so hard to get the differences between two rtb. I've been surfing all over to find middle examples that are not working.

So I decided to open my thread and ask to you.

How can I get the differences between two Richtextboxes and display them on a third richtextbox.

Richtextbox1 and the 2nd they cointain almost the same text around 10k characters. Numbers and special characters too.

Examples:


RTB1 TEXT=

*NEW*

ABCDEFG

12345

QWERTY

RTB2 TEXT=

*NEW*

GFEB

3456983

QWERTYAS




Then the 3 rd Richtextbox should filter like:


*NEW*

GFEB

3456983

QWERTYAS

Basically everytime I update Richtextbox1 I wanna know which changes has been made with the previous one.

I tried different codes that are easily to find if somebody got my same problem, so I'm avoiding to copy the same code that there is out there.

How do you guys advise me to do?

Thanks

Have a good day

Continue reading...
 
Back
Top