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?
markdean.expres
0
Junior Poster
Recommended Answers
Jump to PostThere is. use SelectionAlignment property:
richTextBox1.SelectionAlignment = HorizontalAlignment.Center
All 3 Replies
Mitja Bonca
557
Nearly a Posting Maven
markdean.expres
0
Junior Poster
Mitja Bonca
557
Nearly a Posting Maven
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.