Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello all..

i have a C# windows application where i am planning to provide user work-area which allows user to enter text which will be stored in database or external file.
is there any windows or 3rd part control wherein user can enter text and format it same way as in this website's "ask Question BOX" where we can make bold, italics and give color to text.


unfortunately if there is no such control , can anyone suggest any ideas as a solution to the above mentioned problem...

and also can i use notepad++ inside my application as a solution to this. if yes please suggest. i was searching on Internet, but failed to get a solution.

Thank you..
Posted

1.You should use RichTextBox class, that is provided in the .NET library for windows forms application. You can find details about this class in MSDN.[^]

2.More details are also in MSDN: RichTextBox Overview[^]
 
Share this answer
 
v4
Comments
Thanks7872 19-Dec-14 7:43am    
ReachTextBox ? :-)
Raul Iloc 19-Dec-14 7:57am    
Yes, this class provides the functionality of a WordPad editor, but you have to write some code to integrate it.
Thanks7872 19-Dec-14 8:10am    
Its RichTextBox,not ReachTextBox.
Raul Iloc 19-Dec-14 8:15am    
Your right, thank you for your feedback!
A Windows Forms based text editor with HTML output[^]


download the user control and you will get the required functionality, it returns html that can be saved in the database
 
Share this answer
 
Also see the excellent Fast Colored TextBox control by Pavel Torgashov here on CP: [^]. It is amazingly full-featured.

Pavel has been maintaining and developing this control since 2011, and it is now available using NuGet for a fast install.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900