I was working on a custom control which it was supposed to be a textbox. After some struggling, I did it till the middle of the work but I deleted it at last. My question is, "Is there any article or topic related to designing UIs and specially textbox designing?". I found some good sources about doing this but it's always hard to fit your foot in another person shoe!
An idea that I came up with is creating a structure of Char which it's gonna hold a character properties and a list of these Chars to track every character position and style. I know the textbox itself is consisted of rows and columns of characters but it's just the concept, how you gonna make it?
EDIT The aim is to create a flexible control for drawing all kinds of materials on it. I checked the methods with overriding the Paint event of controls but they're not gonna fill my needs. A real good example of my speech is Fast Colored Textbox. I chose this example because it's really my problem. I did a lot syntax highlighters with RichTextBox, but it would make bugs at working with huge texts. I hope you've got my aim.
TextBoxcontrol with all the little bugs ironed out already. Don't reinvent the wheel, yours is very likely to be hexagonal.TextBoxcontrol and add whatever features you need.