Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
In WinForms, How to change text direction in RichTextBox without losing the text format?
I know that there is RightToLeft option but if i used it while i have formatted text in the richtextbox all the format will be lost which it isn't a good thing in text editors.

I also know that pressing Ctrl+right or left shifts do the job. But is there a way to make it by pressing a button and without sending keys to the RTB?

Thanks in advance.

What I have tried:

I used RightToLeft option but it clear all the format in the text.
Posted

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