Take the 2-minute tour ×

I am writing a MDI application, I need to add a text editor form to it which can do something like what NotePad does! I wonder if there is already such a Form that I can simply add to my MDI form (I know I sound lazy!)

Or I have to do it all myself :( !!!

share|improve this question

closed as off-topic by Stijn, Will, ProgramFOX, rene, Andrew Medico Oct 30 at 20:15



How about an own form which contains a RichTextBox?? –  Aykut Çevik Dec 29 '11 at 10:46
This one should be really easy, (rich)textbox + menu + some event handlers –  Matten Dec 29 '11 at 10:47
Why don't you use TextBox with multiline property set to true? Notepad is just that. –  Lucian Dec 29 '11 at 10:49
I know, I was wondering if I can skip writing code for all menu items like new save load print...! –  Saeid Yazdani Dec 29 '11 at 10:53
Uh, guess what Notepad is? it's just a big multiline textbox. –  sq33G Dec 29 '11 at 11:01

1 Answer 1

up vote 1 down vote accepted

as others told you from your description it looks like a multiline textbox would do the trick, sometimes such control is called TextArea and allows you to show vertical and horizontal scrollbars as needed.

if you use a RichTextBox then you can have RTF text in it, so bold, italic, underlined and other formatting options that are actually not supported in NotePad, NotePad++, TextPad etc.

if you decide to stick on pure TEXT format and not RTF one of the best control to handle this is available here for free: Scintilla.NET

the features and possibilities with this great control are endless, like code formatting, collapsable regions and much, much more.

share|improve this answer
