My goal is some sort of multiline, unlimited length (unlike TextBox) edit control, with which I can apply different fonts, text colors, and highlight colors. I do NOT want to use the RichTextBox, because it is just too slow. I wrote a function to color Transact-SQL code like Microsoft's Query Analyzer does, and it can take a minute to apply the coloring to a 100 KB file. Anyways, I don't need a control that can load/save rich text documents -- the control will color the document based on a set of rules (like Query Analyzer). I know there's at least one control (CodeMax) that provides this sort of functionality, but it's written in C++ and therefore not an option (it must be maintainable and my company doesn't use C++).

Does anyone here know of a usercontrol written to perform the above functionality or a more basic one, that does NOT inherit Microsoft's TextBox or RichTextBox controls? This would include code that shows the blinking cursor at the rate the user has specified in settings, storage schemes for text, selecting of text, etc.

Actually, any direction on building a TextBox from Control or UserControl (again, not inheriting from TextBox or RichTextBox) would be very helpful.

Thanks in advance.