Guys, why can't I find a property for my richtextbox for centering its text? A textbox has a property named "TextAlign" while in richtextbox, there is none. How do I center the text in my richtextbox?

Recommended Answers

There is. use SelectionAlignment property:

richTextBox1.SelectionAlignment = HorizontalAlignment.Center
Jump to Post

All 3 Replies

There is. use SelectionAlignment property:

richTextBox1.SelectionAlignment = HorizontalAlignment.Center

wooohoow! A big big thanks to you...

Im glad you are happy.
You are welcome. YOu can vote up if helpful or mark as answered.
bye, bye

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.