How do I align the text in a RichTextBox?
Basically, the RTB contains:
"--testing"
"--TESTING"
"TESTING--"
"testing--"
Which all have the same number of characters, but have different alignments. How can I align them properly? Im fairly new to C# and confused since it aligned properly in Java's TextArea.
Thank you!
You would have to change the font to a monospaced font, like Courier. This behavior you're showing is standard with most fonts, as not all characters are the same width.
I cant believe it was as simple as that. I tested other fonts but unluckily they weren't monospaced fonts and I just gave up. Thanks for that!
Simple, basic and brilliant. So obvious yet I would never have thought it in a million years...