Click here to Skip to main content
15,746,652 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi - in my app the user will select a company from a combobox list. this then populates a number of different controls on my form. One control being populated is a richtextbox with the Company address. This address is displayed as one long line, I'd like to apply some formatting to this RTB. Can anyone show me how this can be done?

Thank you
Sergey Alexandrovich Kryukov 13-Mar-12 19:53pm    
First, not clear what exactly type named "RichTextBox" do you mean. There are more than one. You should always tag your UI library: WPF? Forms?

Also, what's the problem? RTF is designed to format anything the way you want. Just do it.

1 solution


Here's a great link which describes to customize RichTextBox.[^]

Hope it helps.

With Best Regards
Share this answer
Sergey Alexandrovich Kryukov 13-Mar-12 19:54pm    
First, what of the types named RichTextBox do you mean? Why customizing? The question is more trivial: how to format. Please see my comment to the question.
El_Codero 13-Mar-12 20:09pm    
I've assumed he works with WinForms RichTextBox (no wpf tag). Customizing implies all of the stuff op asked for (font size/color, text formatting and other design stuff). I suppose op could learn something from this article about using RichTextBox properties. Regards,Björn.

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