tags:

views:

59

answers:

2

I need to know is it possible to create a textbox or richtextbox in C# from scratch, not extending anything, just building from root up?

how can it be done? ideas?

+2  A: 

Take a look at codeproject AvalonEdit

volody
If I remember correctly, their text editing control is implemented "from scratch", deriving from Control. The control handles key input, caret positioning and blinking, and much much more.
bbudge
+3  A: 

It can be done, but it would be insanity.

Here's all you need to agree:

Step 1: read the latest Rich Text Format specification (12MB Word document - 279 pages)

Jay
Upvoted for linking to the RTF format. I've consulted the spec. It's big. Generating a valid RTF doc from scratch is hard enough. Parsing it and formatting text for display is many times harder.
Al Crowley