2

I have a

labelControl.Text ="My name:";

Result is

:My name

Symbols changes place.

If I write "&= My name", the result is =& My name.

How do I stop it from changing places?

René Vogt
  • 43,056
  • 14
  • 77
  • 99
Tinsley
  • 75
  • 7

1 Answers1

2

You need to set the RightToLeft property correctly. By default this should be RightToLeft.Inherit. But either your Form or your Label was set like:

labelControl.RightToLeft = RightToLeft.Yes;

You need to set it to RightToLeft.No or RightToLeft.Inherit (if the parent control has it set to No).

René Vogt
  • 43,056
  • 14
  • 77
  • 99