I need a lean & mean TextBox solution. A RichTextBox proves too slow, so I want to go the way of owner drawing, or custom control building.
My need is for a textbox that can handle large text content and offers simple highlighting by drawing colored backgrounds around words or single characters. Important is, that the text string itself does NOT contain markup for this, but rather, the indices of words to mark are stored separately. Indices relative to the start of the text string (also known as the Text property when talking about a .NET TextBox).
I think it will have to involve drawing the text under my own control as the Windows Edit Control will not be able to do what I need.
My application is Windows Forms. What is the proper way to make a control like this, and are there any examples?
And can one make a fast control under .NET? (already assuming native API calls will be needed). Or is this better done in C++?