How to color specific letter in C# winforms using textbox/Richtext box

  • Thread starter Thread starter ShruthiMB1
  • Start date Start date
S

ShruthiMB1

Guest
Hi

I am trying to color the specific letter which is different form original string using textbox or richtextbox.

Solution which i tried is not working, its changing whole string name instead of particular letter. I do not want to use string range as am not limiting solution to particular range.

Can anyone help me to get the solution.

Output should be like below:

Eg1: original string input in textbox 1 is Ramya, Text box 2 i entered Ranya --> as textbox 2 string is changed from M to N, only n in textbox two should be colored, not whole string.

Continue reading...
 
Back
Top