I am writing text editor in c# winforms and I want it to Highlight keywords. Now richtextbox is to slow for opening big files so I am using textbox, but textbox doesn't have a property for setting the color of a selected text. I tried to inherit from textbox and override OnPaint method but it doesn't seem to work. I found this code and it looks great but I have no idea how to work with it.
Anyone have a solution?