Coffeehouse Post

Single Post Permalink

View Thread: Comparing two TextBoxes in C# windows forms
  • User profile image

    Hi to all!

    I am trying to write a code in windows forms in c# to open two text files and compare them. 

    the process is as follows:

    1- two text boxes are provided on the window

    2- the files are loaded into text boxes using OpenFileDialogue 

    3- I want to have the first text as the base and compare the second one to that and highlight the similarities and differences using different colors on the second text.

    I actually don't know how to do step 3.

    many thanks for your helps!!