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

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.