Comparing words in two richtextbox to find difference?
问题 I have three RichTextBoxes . I want to compare all the words of RichTextbox1 with Richtextbox2 one by one with space or comma as the delimiter. If they are same do nothing, if not highlight the text to some color and save it in RichTextBox3 . I am having some trouble with the loop. 回答1: Explanation First we will declare some variables to shorten our writing work. We'll then use the For Each command. Here we will take two rounds to scan the differences, first of Richtextbox1 which is not in