This documentation is archived and is not being maintained.

Displaying Right-to-Left Text in Windows Forms for Globalization

Certain scripts, such as Arabic, are written from right to left. When you display these scripts, not only must the script flow in the reverse direction from the English language, but also visual alignment of form elements must be reversed. In this version, when you set a form's or control's RightToLeft property to RightToLeft.Yes, the left or right alignment is reversed for elements such as check boxes, vertical scroll bars on scrollable controls, and text in the title bars of forms. For a list of these effects, see Control.RightToLeft Property.

You do not need to change the values of properties such as the TextAlign value of a TextBox control: the value stays the same but the alignment is reversed.

To display right-to-left text

  • Set the form's RightToLeft property to RightToLeft.Yes.

    All controls on the form will inherit the right-to-left setting, since the default value for the RightToLeft property of the Control class is RightToLeft.Inherit.

  • If you wish to override the setting for a particular control, set that control's RightToLeft property to RightToLeft.No.

See Also

Control.RightToLeft Property | MainMenu.RightToLeft Property | ContextMenu.RightToLeft Property | RightToLeft Enumeration | Globalizing Windows Forms | Globalizing and Localizing Applications

Show: