right-to-left text (like Hebrew)

60 Views Asked by At

On c#. Winforms. whenever I try to write Parenthesis in text-box in Hebrew\Arabic, they get inverted and are on the other side of the text ( right when they should be on the left).

I tried these things and none of them seemed to work for me:

  • Setting the RightToLeft property for the textbox
  • Choosing a font that supports Hebrew characters.
  • Changing the form Language property in the design view to Hebrew.
1

There are 1 best solutions below

0
Vitaliy On

In general, this is due to the fact that Arabic is written and read from right to left. I don’t know about Hebrew, but I think it’s the same.

If you want this to not happen, then try processing your text first. For example, you can try to do something like:

string myString = "Some Arabiс text here".ToString(System.Globalization.CultureInfo.InvariantCulture);