Hi Reza
Try this code in the init event of your Rich Textbox :
This.selAlignment=1
>Hi all
>I have a rich textbox control in my form.
>My language that i use is Persian ( a right to left language ).
>But each time i run my form , the content of control is Left to Right.
>How i can force the control to be in right to left?
>I know when this control is focused, i can do this with right Shift+Ctrl
>I want to do this with command line.
>Thanks
Ali Mohammad Hossein Zadeh